2012 Federal District (Mexico) election

Elections were held in the Federal District of Mexico (Mexico City) on July 1, 2012 to elect the district's Head of Government, all 66 deputies of the Legislative Assembly, and 16 borough mayors. The election coincided with the 2012 presidential and general elections.

Outgoing Head of Government Marcelo Ebrard, who was elected to the office in 2006, of the Party of the Democratic Revolution (PRD) was term-limited and was not allowed to seek re-election. District Attorney General Miguel Ángel Mancera, the candidate of the PRD-supported Movimiento Progresista coalition, was elected 7th Head of Government of the Federal District.

Background and campaign
Going into the 2012 election, the PRD had governed Mexico City since 1997. Under the PRD's leadership, the city adopted liberal social policies, including gay marriage, abortion, and no-fault divorce. Going into the 2012 election, term-limited Head of Government Marcelo Ebrard was considered politically popular.

PRD nomination
Polling in April 2011 conducted by El Universal found Alejandra Barrales, the head of the PRD group in the legislative assembly, to be the most popular potential PRD candidate for Head of Government. In the survey, Barrales took 24% of the vote, with Secretary of Social Development Martí Batres taking 13%.

In January 2012, Mexico City Attorney General Miguel Mancera was chosen as the candidate of the Movimiento Progresista coalition, which comprised the PRD, the Labor Party, and the Citizens' Movement.

Legislative Assembly election
[[File:Asamblea Legislativa del Distrito Federal - 2012.svg|thumb|200x200px|Yellow: Districts won by the PRD/PT/MC.Blue: Districts won by the PAN.

]] The Movimiento Progresista coalition won a majority in the Legislative Assembly.

Borough mayor elections
[[File:DF Elecciones 2012.jpg|thumb|203x203px|Results of the election for borough mayors. Blue: Victories by the PAN.

Yellow: Victories by the PRD/PT/MC.

Green: Victories by the PRI/PVEM.]] Elections were held for all 16 borough mayor positions.