Ecuador’s highest court approved same-sex marriage on Wednesday, following five other South American countries’ rulings.

In a five to four ruling, Ecuador sided with plaintiff Effraín Soria, who has been in a civil union with his partner since 2012, according to the Associated Press. Same-sex unions have been legal in Ecuador for a decade, but civil partners don’t enjoy the same rights as married couples.  

Soría, the president of the Ecuador Equality Foundation, told AP after the ruling that he would begin planning a wedding with his partner immediately and the ruling is “a joy for our entire community and Ecuador.”

Argentina, Brazil, Costa Rica, Colombia, and Uruguay are the other South American countries that legalized gay marriage.