The Republic of Ireland has voted overwhelmingly to legalise same-sex marriage in a historic referendum.
More than 62% voted in favour of amending the country's constitution to allow gay and lesbian couples to marry.
It is the first country in the world to legalise same-sex marriage through a popular vote.details after the cut
The referendum was held 22 years after homosexual acts were decriminalised in the Republic of Ireland.
Counting began at 09:00 BST on Saturday, and the final result was declared shortly before 19:00 BST.
The turnout was more than 60%, and the outcome seemed clear a short time into the count, with prominent "no" campaigners declaring defeat early on.
A large crowd gathered in Dublin Castle's upper courtyard to watch the declarations on a large screen.
In total, 1,201,607 people voted in favour of same-sex marriage, while 734,300 voted against.
Out of 43 constituencies, only the largely rural Roscommon-South Leitrim had a majority of "no" votes.
Minister for Health Leo Varadkar, who earlier this year came out as the Republic of Ireland's first openly gay minister, said the vote showed that the "traditional cultural divide" between rural and urban areas had vanished.
"This is really Ireland speaking with one voice in favour of equality," he told Irish broadcaster RTE.
Catholic Archbishop of Dublin, Diarmuid Martin, said if the referendum was an affirmation of the views of young people, the church had a "huge task in front of it".
"I think really the church needs to do a reality check," he told RTE.
"I appreciate how gay and lesbian men and women feel on this day, that they feel this is something that is enriching the way they live. I think it is a social revolution."
Voters were asked whether they agreed with the statement: "Marriage may be contracted in accordance with law by two persons without distinction as to their sex."
In 2010, the Irish government enacted civil partnership legislation, which provided legal recognition for gay couples.
But there are some important differences between civil partnership and marriage, the critical one being that marriage is protected in the constitution while civil partnership is not.
Catholic churches will continue to decide for themselves whether to solemnise a marriage.
The leader of the Catholic Church in Ireland, Eamon Martin, has said the church may look at whether it continues to perform the civil side of solemnisation if the change comes in.
Same-sex marriage is now legal in 20 countries worldwide.
Many people returned to the Republic of Ireland from abroad to cast their votes.