qnli question: When was gay marriage legalized in Mexico City? sentence: In December 2009, the Federal District became the first city in Latin America, and one of very few in the world, to legalize same-sex marriage.