Of course Scotland’s Capital is no stranger to the Games, having hosted them twice in 1970 and 1986.
The 1970s Commonwealth Games heralded a number of firsts – the first time the Games had been held in Scotland, the first time ‘British Commonwealth Games’ was adopted (and later abandoned), the first time metric units were used in all events, and the first time a unique logo was designed (the games emblem intertwined with a St Andrews Cross and a thistle).
A total of 1,744 people (including officials) took part in 121 events in 10 sports, with the action centred around Meadowbank Stadium, which also hosted the opening ceremony.
The Games returned to Edinburgh in 1986 but were overshadowed by 32 of the eligible 59 countries boycotting the event due to Margaret Thatcher’s government’s policy of maintaining sporting links with apartheid South Africa rather than joining the general boycott of the country.
The event was also dogged by allegations of financial mismanagement, with the City of Edinburgh eventually ending up around £500,000 out of pocket.
But the Games still went ahead, with 1,660 athletes from 27 nations taking part in 161 events comprising 10 sports.
Here are 22 pictures to take you back to the sporting action at both Edinburgh Games.
Read more:

13. Victory
Australian athlete Simon Baker has enough energy left to jump for joy after winning the 30km walk at the 1986 Commonwealth Games in Edinburgh. Photo: Denis Straughan

14. Flying the flag
Gold medal winner Kirsty Wade waves the Welsh flag after winning the Women's 1500m final in the 1986 Commonwealth Games at Meadowbank stadium in Edinburgh. Photo: Stan Warburton

15. Get a grip
Scotland's Albert Patrick gets a grip on Australian's Dru Schaffer in the 1986 Commonwealth Games wrestling (130 kg class) at Meadowbank stadium. Photo: Alan Macdonald

16. Winners
Scottish athletes Alister Allan (left, silver) and John Knowles (bronze) with the medals they won in the small bore rifle shooting event of the 1986 Commonwealth Games at Meadowbank stadium in Edinburgh. Photo: Unknown