Four days after Mexico's presidential election, government candidate Claudia Scheinbaum was officially declared the winner, becoming the country's first female president.
Election officials announced late Thursday that Scheinbaum, a former Mexico City mayor from the ruling leftist Morena party, had won 59.75% of the vote.
Her main opponent, opposition candidate Xochitl Gálvez, came in second with 27.45%.
Jorge Alvarez, of the small centre-left Civic Movement party, has long been considered an underdog.
It was a historic Election Day, with nearly 100 million Americans eligible to vote for every seat in the House of Representatives and Senate, as well as local government offices.
Final results from the parliamentary vote are yet to be announced, but Scheinbaum's Morena party is expected to win a solid majority.
The party wants to secure two-thirds majorities in both houses of Congress and push through constitutional reforms on its own, including the appointment of judges by direct vote, a plan that has upset critics who fear Mexico's democratic separation of powers is at risk.
Following the election, Mexico's stock exchange suffered losses and the national currency, the peso, lost about 5% of its value against the US dollar.
Sheinbaum is from the same party and a longtime ally of outgoing left-wing populist President Andres Manuel Lopez Obrador.
The popularity of the president, who was not allowed to run again after six years in office, helped the 61-year-old scientist win the election.
Sheinbaum is expected to continue his policies, centered on the popular state aid system for young and old.
The opposition has conceded defeat but plans to file a complaint with the electoral tribunal over alleged irregularities in the electoral process, accusing Lopez Obrador of undue interference and the use of state resources in favor of Sheinbaum.