WATCH: Scotland's athletes mobbed at homecoming celebration in Edinburgh
A series of events have taken place in the capital.
The record-breaking success of Scotland's Olympic and Paralympic stars has been celebrated in Edinburgh.
Dozens of athletes were cheered by children and mobbed for selfies as they arrived at Oriam, the new sports performance centre at Heriot-Watt University in Edinburgh.
The homecoming event included a Q&A and an opportunity for young people to try Olympic sports such as rowing, judo and tennis, aided by tips from the athletes.
The First Minister also attended.
The event was being followed by a public party in Edinburgh's Festival Square attended by hundreds of people all keen to catch a glimpse of the athletes who produced record breaking performances in Rio.
The event's being followed by the first ever Team Scotland Scottish Sport Awards.