Soldiers from 2nd Battalion, The Royal Regiment of Scotland (2 SCOTS) have paraded through Penicuik to mark their homecoming after six months of operations in Iraq, South Sudan and Cyprus.
On Thursday, during the parade, they were accompanied by the regiment mascot Cruachan IV and the band of the Royal Regiment of Scotland.
2 SCOTS were on deployment in Iraq as part of Operation Shadar, where they were training Kurdish Security Forces and preparing them to lead operations against so-called Islamic State.
They also served in South Sudan and Cyprus on UN missions.
On deployment in South Sudan, 2 SCOTS provided security to the British Army Engineer Battlegroup.
In Cyprus, they joined UN troops in patrolling the green line, a demilitarised zone that separates Occupied Cyprus from the Republic of Cyprus.
Lieutenant Colonel Campbell Close, Commanding Officer of 2 SCOTS said the parade gives them a chance to say thank you.
"It's a chance for us to show our thanks to the local community in Penicuik for the support they've given us."
Lt Col Close added that the community has continued to show support "not only over the last six months whilst we've been deployed but actually over the last 12 years whilst we've been based in Milton Bridge, in Penicuik".
He added: "It's also a chance, I hope, for the local community to come out and be really proud of their young men and woman whoa re representing the country overseas."