A team of soldiers, veterans and civilians have walked almost 500 miles over 10 days to raise money for two military charities.
The team, CastleTrek, arrived at Edinburgh Castle in the pouring rain, having marched the distance from Windsor Castle for the Household Cavalry Foundation and the Royal British Legion charity.
The six-strong team walked through Edinburgh's Royal Mile to the tune of their own bagpipe performance, as part of the pre-show entertainment for the Edinburgh Military Tattoo.
Despite the weather, there was a warm greeting for CastleTrek, who have raised approximately £20,000 for the charities.
The team split into smaller units after departing Windsor, taking turns in completing different legs of the journey, whilst passing the bagpipes between them like a baton.
The team captain, Martin Semple, performed his comedy routine 'Stand-Up Soldier' along the route and embraced the challenge.
"I feel quite emotional about it, but it was definitely worth it,” he said.
“Every single step, there was a reason behind it.”
Along their journey, the team faced an array of challenges, with summer downpours reaching them when broken-down support vehicles could not.
Both of the team's chosen charities support serving and former military personnel.
The team set out a scheduled route for the walk north, as highlighted in the interactive map.
Staff Corporal James Archer, who had only just returned from an exercise at the start of the challenge, said the "testing times" were put into context by the cause of the walk.
"It gives you the relativity of who the charities support and what they've gone through," said Staff Corporal Archer.
"It helps you try to imagine what their difficulties are."
One of those greeting the team on their arrival was the Governor of Edinburgh Castle, Major General Alastair Bruce.
He was delighted to see the team in high spirits following such a difficult task.
"Do you know what's fantastic? When soldiers get together and create the teamwork to do something that really makes a difference," he said.