Mexico City, Mexico (CNN) -- A law allowing same-sex weddings took effect Thursday in Mexico City, one day after the second same-sex marriage was performed in Argentina.



The Mexican measure also allows same-sex couples to adopt children.



Mexico City Mayor Marcelo Ebrard has said officials will be prepared to implement the new city law.



The Mexican Institute for Sexology, a private educational institution founded in 1979, held a workshop last month for the 60 Civil Registry judges who will perform the weddings, said Juan Luis Alvarez-Gayou, the institute's founder and director. Workshops are being held this week for 120 civil court judges who may have to rule on domestic issues after the weddings, Alvarez-Gayou said.



The Catholic Church has been opposed to the law, but officials have accepted the measure, the institute director said.



"We haven't had any problems with the judges," Alvarez-Gayou said.



The Mexico City law comes amid the beginning of wider acceptance for same-sex unions in Latin America.



In Argentina, Damian Bernath and Jorge Salazar were married Wednesday in a civil ceremony in the nation's capital, Buenos Aires, the official Telam news agency reported. Judicial measures had prevented gay marriage in Buenos Aires, but a judge issued a ruling last week allowing the two men to marry.



It was the second same-sex marriage in Argentina. The previous wedding took place in Tierra del Fuego after two men were denied a permit in Buenos Aires.



In that case, a Buenos Aires court had ruled that a ban on same-sex marriage was illegal and ordered the proper authorities to grant the couple a marriage license if they applied for one. On the eve of their December 1 wedding, however, another court filed an injunction, halting the nuptials.



In many Latin American jurisdictions, the issue of same-sex marriage is decided on the local and state level.
Workshops were held for who? How many judges had to go to workshops? Mexico City law comes as what? What will the measure allow? Where did the civil ceremony take place? how many judges made the ruling what can same sex couples now do
60 Civil Registry judges 120 amid the beginning of wider acceptance for same-sex same-sex couples to adopt children. Mexico City, 120 adopt children.
question: Workshops were held for who?, answer: 60 Civil Registry judges | question: How many judges had to go to workshops?, answer: 120 | question: Mexico City law comes as what?, answer: amid the beginning of wider acceptance for same-sex | question: What will the measure allow?, answer: same-sex couples to adopt children. | question: Where did the civil ceremony take place?, answer: Mexico City, | question: how many judges made the ruling, answer: 120 | question: what can same sex couples now do, answer: adopt children.