Mexico’s Supreme Court on Wednesday said laws prohibiting same-sex marriage are “discriminatory.”

Michael Lavers at the Washington Blade reports:

A strongly-worded statement the court posted to its website said the majority of the judges who considered a case that challenged portions of the state of Sinaloa’s family code defining marriage between a man and a woman found them to be unconstitutional.

“The contested provisions are clearly discriminatory because the relationships in which homosexual couples engage can fit perfectly into the actual fundamentals of marriage and living together and raising a family,” reads the statement. “For all of those relevant effects, homosexual couples can find themselves in an equivalent situation to heterosexual couples, in such a way that their exclusion from both institutions is totally unjustified.”

The ruling is in response to a petition for legal recourse — known as an “amparo” in the Mexican legal system — that a gay couple filed against the Sinaloan family code in April 2013.