Farewell parade for 3rd Battalion The Yorkshire Regiment
A town came to a standstill as residents paid their respects to six UK soldiers killed in an explosion in Afghanistan last week.
Hundreds lined the streets as more than 400 soldiers from the 3rd Battalion the Yorkshire Regiment took part in a farewell parade in Warminster.
Five men from the unit and one from 1st Battalion The Duke of Lancaster Regiment died in the Taliban attack.
The Yorkshire Regiment is departing for a nine-month tour in Afghanistan.
The Duke of York, colonel-in-chief of the regiment, took the salute.
He then joined the soldiers and local dignitaries for a service in the Minster Church of St Denys, which began with the names of the dead men being read out and the playing of the Last Post.
Cpl Jake Hartley, 20; Pte Anthony Frampton, 20; Pte Christopher Kershaw, 19; Pte Daniel Wade, 20; and Pte Daniel Wilford, 21, all of 3rd Battalion the Yorkshire Regiment, were killed alongside Sgt Nigel Coupe, 33, of 1st Battalion The Duke of Lancaster's Regiment, when a Taliban roadside bomb destroyed their Warrior armoured vehicle in Helmand province on 6 March.
The incident is the biggest loss of UK life in a single incident in Afghanistan since 2006.
Six red roses were thrown into the road ahead of the marching soldiers.
A Ministry of Defence spokesman said 3rd Battalion the Yorkshire Regiment, based at Battlesbury Barracks in Warminster, was now "focusing on the task ahead".
The spokesman said it would be the unit's last public appearance before it flies out to join the 12th Mechanised Brigade in Helmand province in the coming weeks.