The King's Own Scottish Borderers have marched as a regiment for the final time in their 317-year history.
The KOSB marched as a regiment in Edinburgh for the final time
Soldiers paraded close to the spot at the Palace of Holyroodhouse where the KOSB formed on 18 March, 1689.
The Edinburgh event was the culmination of a series of freedom parades through the KOSB's traditional recruiting area.
Later this year the regiment will amalgamate with the Royal Scots to form the Royal Scots Borderers battalion of the Royal Regiment of Scotland.
Commanding officer of the KOSB, Lieutenant Colonel Rob Jefferies, said it was a chance for Borderers from far and wide to mark the historic occasion.
"Over the past few weeks, we have been tremendously well received as we have conducted freedom parades throughout our recruiting area," he said.
"I am confident that The Royal Scots Borderers, the new 1st Battalion of the Royal Regiment of Scotland, will continue to enjoy the same strong local links within its expanded recruiting area.
"We must all look forward to the future.
"I have no doubt that the pride, professionalism and fighting spirit of the KOSB will be taken forward with distinction into The Royal Regiment of Scotland."
The Borderers were formed in 1689 and legend has it that within just two hours, 800 men had signed up in the grounds of the Palace of Holyroodhouse.
Today near the same spot the regiment mustered to march for the last time.
The regiment first saw action at Killiecrankie, but always celebrated the battle honours it won at Minden in 1759 when it famously broke the centre of the French cavalry.
The regiment's name will disappear on 1 August when the merger with the Royal Scots takes place.
It is one of six infantry regiments which have become battalions of the new Royal Regiment of Scotland (RRS).