A bill which allows same-sex weddings to take place in Scotland has been passed by MSPs in the Scottish Parliament.
MSPs voted by 105 to 18 in favour of the Marriage and Civil Partnership (Scotland) Bill.
The Scottish government said the move was the right thing to do but Scotland’s two main churches were opposed to it.
The first gay and lesbian weddings could take place this autumn.
Religious and belief bodies can “opt in” to perform same-sex marriages.
Ministers said no part of the religious community would be forced to hold such ceremonies in churches.
Equal Marriage campaigners gathered outside the Scottish Parliament
During a debate at Holyrood, MSPs rejected amendments which were said to provide “protection” for groups and individuals opposed to same-sex marriage.
The SNP’s John Mason tabled an amendment stating that no-one could be “compelled by any means” to solemnise gay marriage, including by a contract or a legal requirement.
All religious institutions – including the Church of Scotland – will be free to decide for themselves if they would like to provide marriages for gay couples, under plans announced today.
The Scottish Government has ruled out introducing similar conditions for the nation’s Presbyterian church, although SNP ministers insist that no churches would be forced to hold same-sex weddings.
Ministers have already decided they want to make the change, and now need to consult on proposed legislation to be put to the Scottish Parliament.
The consultation on its draft legislation – opposed by the Church of Scotland and the nation’s Catholic Church – will last until March.