In pictures: The best of military action from Commonwealth Games
Around 1,000 personnel represented the UK Armed Forces at this year's Commonwealth Games in Birmingham.
As well as being responsible for security, 300 personnel supported the ceremonial duties which included 280 medal presentations.
Eleven days of action drew to a close at Alexander Stadium on Monday night with organisers turning the traditional closing ceremony into a non-stop party, featuring performances from UB40, Jorja Smith, Goldie, Jacob Banks and a surprise appearance from legendary Birmingham rock star Ozzy Osbourne.
The two-hour event marked the end of a successful medal haul in which all four UK nations scooped a total of 238 medals, including 70 golds, during the 11-day competition.
Personnel from the British Army and Royal Air Force had athletes competing at this year's games, taking part in boxing, judo and athletics.
Notably, RAF Senior Aircraftman Luke Pollard guided Dave Ellis to the para-triathlon gold medal in Birmingham.
British military veteran Micky Yule took home a bronze medal competing for Scotland, lifting 192kg to place third in the heavyweight benchpress.
The Earl of Wessex, Prince Edward, officially declared the Commonwealth Games closed after the flag handover to Victoria, the Australian state that will host the 2026 edition.