Sweden's parliament on Wednesday voted by a wide majority in favour of a gay marriage bill that allows homosexuals to wed in either a religious or civil ceremony.
The law will come into force on May 1.
"Parliament on Wednesday adopted the bill on a gender-neutral marriage law," parliament said in a statement.
Of 349 members of parliament, 261 voted in favour, 22 were opposed to the proposal, 16 abstained and 50 were absent.
In Sweden, heterosexuals can choose to marry in either a civil or religious ceremony, whereas homosexuals have until now only been allowed to register their "partnerships" in a civil ceremony.
Civil unions granting gays and lesbians the same legal status as married couples have been allowed under Swedish law since 1995.
Sweden, already a pioneer in giving same-sex couples the right to adopt children, would become one of the first countries in the world to allow gays to marry in a major Church.
The Lutheran Church, which was the state Church until 2000, has offered gays a religious blessing of their union since January 2007.
Read more here.