Soldiers from 19th Regiment Royal Artillery have been joined by former members of the unit as they paraded before crowds that had gathered at Edinburgh Castle for a farewell tribute.
The unit was marking the end of 38 (Seringapatam) Battery, which has been disbanded as part of the ongoing restructuring of the British Army.
The battery can trace its history back to the 4th Company Bombay Artillery in 1768.
It has served in both World Wars and has also been deployed in Iraq and Afghanistan.
The commanding officer of 19th Regiment Royal Artillery, Lieutenant Colonel Peter Beaumont, was among the crowds paying tribute to one of its oldest batteries.
"Its a sad day but these changes are part of Army 2020."
A fellow member of 38 Seringapatam Battery, David Horrobin, was sorrowful at witnessing the end of an era.
"It's very hard to explain to civilian people what joining a battery or a regiment means to fellow soldiers. It becomes your whole family."
As a final salute to the Battery, its longest-serving member was given the honour of firing the one o'clock gun at Edinburgh Castle.