But it was strongly opposed by the Catholic Church and Church of Scotland.

The announcement was made in the wake of a government consultation which produced a record 77,508 responses.

Same-sex couples in Scotland currently have the option to enter into civil partnerships and the Holyrood government has insisted no part of the religious community would be forced to hold same-sex weddings in churches.