Despite heavy opposition from various organizations defending traditional marriage, Mexico’s Supreme Court ruled Thursday that same-sex “marriage” in the country's capital city is constitutional.

According to the Associated Press, the court's justices acknowledged that while the constitution protects the family, it does not define what a "family" is.

The 8-2 vote went against an appeal by Mexico's attorney general challenging the constitutionality of the city's law allowing gay “marriage.” The law went into effect on March 4 of this year.

Next Monday the court will debate whether the law applies to the rest of the country and whether it includes the right to adoption.