A Jalisco resident in Mexico will be getting a new birth certificate after undergoing a sex change.

That country’s Supreme Court made the ruling to reflect the fact that the person had changed their sex and name, in a move hailed as another step toward equal rights in the socially conservative country.

“As the Supreme Court has argued in other cases, everyone has the right to define their own sexual and gender identity and it is the state’s responsibility to guarantee this decision, which is reflected in the different documents, mainly in the birth certificate,” the court says in a statement.

The court says the person, who was not identified, could go to the civil registry directly to request the new birth certificate.

In January, it had ruled that same-sex partners have a right to receive the social security benefits of their deceased partner. The Mexican Social Security Institute had said this benefit was not afforded to homosexual couples.