Voters in Mexico have begun casting their ballots in general elections marked by deep anger over endemic corruption and brutal violence, with veteran leftist Andres Manuel Lopez Obrador looking poised to sweep to power.
The country is electing its president for the next six years, as well as both chambers of Congress and nine governors, with a total of more than 18,000 federal, state and local posts up for grabs - the largest elections in its history.
They have also been the most violent, with 145 politicians murdered in the build-up to the vote, part of a wave of bloodshed fueled by a military crackdown on the country's powerful drug cartels that was launched in 2006.
Lopez Obrador, former mayor of Mexico City, has led opinion polls throughout the campaign and would be the first leftist to take the presidency in decades in Mexico if he ousts the ruling centrist Institutional Revolutionary Party (PRI).
Runner-up in the 2012 and 2006 elections, Mr Lopez Obrador pitches himself as the only man capable of cleaning up a political class whose credibility has been ground down by persistent graft, soaring crime levels and years of sub-par economic growth.
"The new president of Mexico will have moral and political authority to demand everyone behaves with integrity and make honesty a priority as a way of life," Lopez Obrador said in his campaign finale in a soccer stadium in the capital on Wednesday.
The law bars current President Enrique Pena Nieto from seeking re-election.
But his popularity crumbled as his name became tainted by investigations into alleged conflicts-of-interest and embezzlement scandals engulfing top PRI officials.

Campaigning relentlessly around Mexico for the past 13 years, Lopez Obrador has watched political careers rise and fall as established parties were consumed by the country's social and economic problems and the responsibility of power.
"Let's hope Mexico changes," said 20-year-old Lopez Obrador supporter from Atlacomulco, a longstanding PRI bastion some 90km from Mexico City and hometown of Pena Nieto.
"Right now, we don't know if we're coming or going."
Lopez Obrador, 64, has been vague on policy details.
Seeking to harness support from economic nationalists, leftist liberals and social conservatives, he vows to reduce inequality, improve pay and welfare spending, as well as run a tight budget.
A vocal opponent of the government's economic agenda, his criticism has been tempered by business-friendly aides.
But he has played with the idea of referendums to resolve divisive issues like whether to continue with Pena Nieto's opening of the oil and gas industry to private capital.
His rivals Ricardo Anaya, an ex-leader of the center-right National Action Party (PAN) heading a right-left alliance, and PRI candidate Jose Antonio Meade, a former finance minister, differ only in nuance in their support of the energy reform.
Their efforts to catch Lopez Obrador have been hampered by attacks on each other, allowing him to build a lead that some opinion polls have put in excess of 20% points.
They also represent the only two parties to have ruled modern Mexico.
If victorious, Lopez Obrador faces a tougher security situation than did Pena Nieto. The election campaign has been the bloodiest in recent history and murders are at record highs.
The next president will also inherit a simmering dispute with US counterpart Donald Trump over migration and trade, with talks to rework the North American Free Trade Agreement (NAFTA) unresolved, pressuring Mexico's peso currency.
Mr Trump has threatened to pitch North America into a costly trade war over NAFTA, and his insistence that Mexico pay for his planned border wall has deeply angered many Mexicans.
Lopez Obrador has trodden carefully and wants to broker a deal with Mr Trump under which Mexico would work to rein in illegal immigration in return for economic support.
If that proves impossible and Mr Trump keeps provoking Mexico, few think the fiercely patriotic Lopez Obrador will stay silent.
How much heft Lopez Obrador can bring to bear both domestically and internationally will depend significantly on his control of Congress, where no party has held an outright majority since 1997 in Latin America's second largest economy.