The Duke and Duchess of Edinburgh took part in a special Church of Scotland service during a visit to Edinburgh.
The Ceremony of the Keys was held at the Palace of Holyroodhouse on Friday, to mark the start of the General Assembly of the Church of Scotland.
The guard of honour, Balaklava Company, 5th Battalion, the Royal Regiment of Scotland marched during the ceremony.
Chief Constable of Police Scotland, Jo Farrell also attended, and journalist, TV correspondent and British Army reservist Major-General Alastair Bruce.
During the Ceremony of the Keys the Lord High Commissioner, in this case the Duke of Edinburgh, as the King’s representative, receives the keys from the Lord Provost.
He was previously Lord High Commissioner in 2014, as Earl of Wessex, and represented his mother, the late Queen.
The Lord High Commissioner is the sovereign’s personal representative to the General Assembly of the Church of Scotland and is appointed by the sovereign to attend proceedings on his behalf.
The Duke, who was granted the title previously held by his father on his 59th birthday last year, will make the opening and closing addresses to the Assembly and carry out a number of official functions throughout the week.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here