The country’s highest court in 2018 ruled that the nation’s law banning same-sex marriage was unconstitutional and said the ban would be nullified in 18 months unless the legislature acted before then, which it did not. In May 2020, Costa Rica became the first Central American country to legalize same-sex marriage.