The people of Ireland backed same-sex marriage by a landslide in a referendum that marked a dramatic social shift in a traditionally Catholic country that only decriminalized homosexuality two decades ago.

After one of the largest turnouts in a referendum there, 62 percent of voters said ‘Yes’, making Ireland the first country to adopt same-sex marriage via a popular vote.

Dublin

‘Yes’ supporters crowded into the courtyard of Dublin Castle to watch in blistering sunshine as results trickled in from around the country were shown on a large screen. They cheered with joy as the final tally was announced and then burst into a rendition of the national anthem.

“We woke up today to a new Ireland. The real Irish Republic that I have dreamed of my whole life,” said Jean Webster, a 54-year-old administrator who came out as a lesbian eight years ago after separating from her husband.

Government ministers waved a rainbow flag from the stage in front of the crowd and one lesbian senator proposed to her partner live on national television.

“The answer is yes to their future, yes to their love, yes to equal marriage. That ‘Yes’ is heard loudly across the world as a sound of pioneering leadership from our people,” Prime Minister Enda Kenny told a news conference. “Ireland, thank you.”

The Catholic Church, which teaches that homosexual activity is a sin, saw its dominance of Irish politics collapse after a series of child sex abuse scandals in the early 1990s and limited its ‘No’ campaigning to sermons to its remaining flock.

The archbishop of Dublin said the result presented a challenge.

“It is a social revolution. It’s very clear that if this referendum is an affirmation of the views of young people, then the Church has a huge task ahead of it,” Archbishop Diarmuid Martin told national broadcaster RTE.

“The Church needs to do a reality check.”

Ireland follows several Western European countries including Britain, France and Spain in allowing gay marriage, which is also legal in South Africa, Brazil, Canada and some U.S. states, while homosexuality remains taboo and often illegal in many parts of Africa and Asia.

U.S. Vice President Joe Biden tweeted: “We welcome Ireland’s support for equality. #LoveWins”