Two Austrian women are the first same-sex couple to officially tie the knot in the predominantly Catholic country, following years of legal challenges from gay rights groups.

Nicole Kopaunik and Daniela Paier got married in a ceremony in Velden, south Austria, shortly after midnight on Tuesday, public broadcaster ORF reported.

The couple, both 37, had been engaged for four years.

Austria’s constitutional court ruled in 2017 that same-sex couples should have the right to marry from 1 January 2019. Previously, same-sex couples could only enter into a registered partnership that granted fewer rights than marriage.

Austria’s governing parties, the People’s Party and the Freedom Party, had strongly opposed granting same-sex couples the right to marry, but said they would respect the court’s ruling.