The New Mexico Supreme Court on Thursday ruled in favor of same-sex couples, granting them all the same rights of marriage enjoyed by heterosexual couples.

The court’s 31-page ruling states, in part, that: “All rights, protections, and responsibilities that result from the marital relationship shall apply equally to both same-gender and opposite-gender married couples.”