The Mexican general election of July 2, 2006, was the most hotly contested election in Mexican history and as such, the results were controversial. According to the Federal Electoral Institute (IFE), the initial "Quick Count" determined the race was too close to call, and when the "Official Count" was complete, Felipe Calderón of the right-of-center National Action Party (PAN) had won by a difference of 243,934 votes (or 0.58%). The runner-up, Andrés Manuel López Obrador of the left-of-center Coalition for the Good of All (PRD, PT, Convergence), immediately challenged the results and led massive marches, protests, and acts of civil resistance in Mexico City. On August 9, while protests continued to expand, a partial recount was undertaken by election officials after being ordered to do so by the country's Federal Electoral Tribunal (TEPJF, sometimes referred to by the acronym of its predecessor, the TRIFE). The tribunal ordered the recount of the polling stations that were ruled to have evidence of irregularities, which were about nine percent of the total. On September 5 the tribunal declared that Felipe Calderón met all the constitutional requirements in order to be elected, and was declared president-elect. Some civil resistance acts led by Andrés Manuel López Obrador were maintained in an attempt to encourage a change in the country's opinion, as well as other activities such as a documentary by Mexican filmmaker Luis Mandoki. Elections and results On Sunday July 2, 2006, Mexico held its first presidential election of the post-PRI (Institutional Revolutionary Party) era. Media polls had predicted a very tight race. To understand some of the allegations and controversies, it will be useful to know some of the details of how the votes were counted and how the partial results were reported. Vote counting Since the 1997 federal elections, elections in Mexico had been overseen by the (now dissolved) Federal Electoral Institute, known by its Spanish acronym IFE. Prior to 1997, elections were run by the federal government's Secretaría de Gobernación (interior ministry). The law governing elections was the Federal Code for Electoral Institutions and Procedures, the COFIPE. The COFIPE was amended after the election of 2006; references to articles in this section refer to the COFIPE as it stood during the election in 2006, unless explicitly noted otherwise. Under the law then in force, each polling place was manned by randomly selected citizens from the corresponding district, who formed the Mesa Directiva