Slovenia’s highest court has ruled that a referendum on same-sex marriage backed by a conservative group with ties to the centre-right opposition Slovenian Democratic Party (SDS) and the Catholic Church can move forward.

Slovenia’s Parliament legalized same-sex marriage and adoption in March, but conservatives gathered more than 40,000 votes, enough to trigger a referendum under Slovenian law.

“Should more than 20 percent of the electorate take part in the referendum, and a majority of them vote against the law, it will eventually be scrapped,” AFP reports.

Slovenia has a population of approximately 2 million.