A ban on same-sex marriages in Costa Rica was ordered to be struck down Thursday by the country’s Supreme Court, which declared the law to be unconstitutional and discriminatory.
The court ruling gives lawmakers 18 months to adjust the current law, Agence France-Presse reports.
The verdict is in line with an opinion given seven months ago by the Inter-American Court of Human Rights that said homosexual couples have the same rights as heterosexual ones to marry.
“We continue to deploy actions that guarantee no person will face discrimination for their sexual orientation or gender identity, and that the state’s protection be given to all families under equal conditions,” Costa Rican President Carlos Alvarado wrote on Twitter.
Alvarado, a centrist, was elected in April after defeating an evangelical preacher, Fabricio Alvarado, who ran on a platform against same-sex unions.
Costa Rica is a majority Roman Catholic country and a high number of evangelical lawmakers who oppose gay marriage sit on the legislative assembly.
“I see it as not very likely that in 18 months the Legislative Assembly will work out a law,” said Enrique Sanchez, a lawmaker in President Alvarado’s Citizen Action Party, according to AFP.
“What I see happening is that the norm (the gay-marriage ban) will simply be declared unconstitutional in 18 months’ time,” added Sanchez, who is also the country’s first openly gay member of the legislature.
Magistrate Fernando Castillo said that if the legislature does not change the law within the time frame, the ban will cease to exist and gay marriage will automatically become legal, according to the Associated Press.
More Must-Reads from TIME
- Introducing the 2024 TIME100 Next
- Sabrina Carpenter Has Waited Her Whole Life for This
- What Lies Ahead for the Middle East
- Why It's So Hard to Quit Vaping
- Jeremy Strong on Taking a Risk With a New Film About Trump
- Our Guide to Voting in the 2024 Election
- The 10 Races That Will Determine Control of the Senate
- Column: How My Shame Became My Strength
Contact us at letters@time.com