In tribute, members of the 105th Regiment Royal Artillery fired a 41-round gun salute at Edinburgh Castle on Saturday.
Gun salutes also sounded across the UK and in Gibraltar and firing ended at 12.41pm, with one round fired per minute from noon.
1. Calton Hill
The salute, pictured from Calton Hill Photo: Lisa Ferguson
2. In tribute
The Duke of Edinburgh died on Friday Photo: Andrew Milligan
3. National mourning
Respects have been paid from across the UK and world Photo: Andrew Milligan
4. Royals
“The Royal Family join with people around the world in mourning his loss" Photo: Andrew Milligan