Two gay couples were allowed to legally marry in the Mexican state of Quintana Roo near the tourist destination city of Cancun, the Spanish news agency EFE reported.

On Monday Maria Patricia Novelo Infante and Areli Castro Garcia de Alba; and Sergio Arturo Monje Cruz and Manuel Reyes Chale de la Fuente received their official marriage certificates.

The two couples argued that the Civil Code of Quintana Roo does not specify the gender of applicants.

“If it's not prohibited, then it is allowed and legal,” Novelo said.

“We were more than two months making requests in different offices of the Civil Registry of Quintana Roo such as Cancun, Playa del Carmen and Chetumal, and they all denied us the request,” she added.

A judge in the city of Kantunilkin agreed to their request.

The judge, who also initially denied their petition, came around after several days, and said there were no legal grounds to deny it.

The city-state of Mexico City legalized gay marriage last year and remains the only municipality in Mexico where gay couples can legally marry.

Novelo said another 10 couples were preparing to wed in Quintana Roo.