Holyrood is in line to pass a law to allow gay couples to get married "sooner rather than later", the Health Secretary has said.
The Scottish Government will introduce a same-sex marriage Bill to the Scottish Parliament before the end of June.
The UK Government's plans to legalise gay marriage cleared the House of Commons last week.
Alex Neil told MSPs that the Marriage and Civil Partnership (Scotland) Bill will be introduced in the current parliamentary session, before MSPs break-up for summer at the end of next month.
The Scottish Government has pledged that if the Bill is passed, no church or religious celebrant will be compelled to conduct same-sex marriages if they do not agree with them.
Talks have been taking place with the UK Government because ministers at Holyrood believe an amendment is needed to UK equalities legislation to protect individual celebrants who may not want to conduct same-sex ceremonies even if their church, as an organisation, backs them.
Mr Neil said "substantial progress" has been made on the issue in discussions with UK Culture Secretary Maria Miller.
Labour's Drew Smith pressed him on when gay couples in Scotland would be able to get married, asking Mr Neil if he thought the first weddings "would take place before or after the September 2014 referendum".
Mr Neil said: "I'm not thinking in terms of a referendum, rather the principles of the Bill. Obviously we have given a commitment to introduce this legislation after the extensive consultation we have had as quickly as possible, which is what we're doing.
"I would hope the timetabling would be such that we could see this Bill become law sooner rather than later."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article