More than half of people in Scotland now have no religion, according to research.
Findings from the Scottish Social Attitudes survey show 52% of people say they are not religious, compared with 40% in 1999 when the survey began.
The proportion who say they belong to the Church of Scotland has fallen from 35% in 1999 to just 20%.
Other religious groups, including Roman Catholic (15%) and other Christian (11%) have remained steady.
The number of non-Christians has remained at 2%.
The research, published by ScotCen Social Research, also reveals attendance at religious services is at the lowest level recorded since 1999.
Two-thirds of people living in Scotland who say they are religious "never or practically never" attend services, compared with 49% when the survey began.
Ian Montagu, researcher at ScotCen, said: "Today's findings show that Scottish commitment to religion, both in terms of our willingness to say we belong to a religion and to attend religious services, is in decline.
"However, this change doesn't appear to be affecting all religions equally. Affiliation with the Church of Scotland is in decline while levels of identification with other religions remain relatively unchanged.
"As fewer Scots are acknowledging even a default religious identity, it is affiliation with the national church that is the hardest hit."
The 2015 Scottish Social Attitudes survey interviewed a representative random probability sample of 1,288 people between July 2015 and January 2016.