On Thursday, Costa Rica's Supreme Court declared the law to be unconstitutional and discriminatory, and lawmakers now have 18 months to adjust the current law.

"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, adding "Our commitment to full equality remains intact."

Alvarado was first elected in April when he ran against an anti-marraige equality candidate and won. Costa Rica is primarily Roman Catholic country, so the fight for marriage equality is no easy feat.

“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 and the first openly gay member of the Supreme court, according to Agence France-Presse. “What I see happening is that the norm (the gay-marriage ban) will simplybe declared unconstitutional in 18 months’ time."

Additionally, Magistrate Fernando Castillo told the Associated Press that if the lawmakers cannot decide on a new law within that timeframe, same-sex marriage will automatically become legal for the country.

While the new law will take time to adjust, the ruling is a big win for love. Costa Rica now joins other nations like Germany, Australia and others as countries that support marriage equality.