The court gave the National Assembly 18 months to conform the country's laws to permit same-sex unions. Costa Rica's Constitutional Chamber of the Supreme Court of Justice then issued a 6-4 decision in August 2018 declaring unconstitutional the portion of the nation's family code that prohibited gay marriage.