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
- How Donald Trump Won
- The Best Inventions of 2024
- Why Sleep Is the Key to Living Longer
- How to Break 8 Toxic Communication Habits
- Nicola Coughlan Bet on Herself—And Won
- What It’s Like to Have Long COVID As a Kid
- 22 Essential Works of Indigenous Cinema
- Meet TIME's Newest Class of Next Generation Leaders
Contact us at letters@time.com