Oscar Piastri has lost the lead of the Formula 1 drivers' championship as teammate and title rival Lando Norris stormed to a dominant victory in Mexico City.
Norris was a class above the field to win the race in a canter, while Ferrari's Charles Leclerc held on to second from a charging Max Verstappen.
Haas's driver Oliver Bearman produced the best drive of his rookie season to finish fourth, and equal best-ever result for the team, holding off a fast-finishing Piastri.
The battle for second and the battle for fourth appeared to be headed for a grandstand finish, but Verstappen and Piastri were denied the chance to make late moves when a virtual safety car was deployed on the penultimate lap for a stricken Williams car, which was reportedly behind a barrier and out of harm's way.
Norris now leads the championship by one point over Piastri, who entered the race with a 14-point advantage.
The race in Mexico was the 15th consecutive grand prix where Piastri began as the championship leader, but the McLaren driver has struggled for form in recent times.
Piastri appeared to find some of his best form in Mexico, fighting to fifth after falling to ninth on the opening lap, but it was not enough to hold onto his championship lead.
"I felt like the whole race I was right behind someone and just struggling with dirty air," Piastri said.
"That was pretty difficult.
"But I think for me, the biggest thing is trying to learn the things I want to learn today.
"Yesterday [qualifying], it kind of became obvious that after the session, there were a few things I needed to change pretty majorly in how I was driving.
"Today was firstly about trying to limit the damage, and also learn some things about [the car].
"If I've made some progress with that, I'll be happy."
[standings]Norris was unchallenged in victory, leading every lap in a dominant performance.
The win for Norris is his sixth grand prix triumph of the season, and moves him into the lead of the championship for the first time since the end of round four.
"What a race, I could just keep eyes forward and concentrate," Norris said.
"A straightforward race for me, good start, good launch, good first lap and could go from there."
Norris got away to a great start and held the lead of the race at the first corner, a mean feat in Mexico with the run to the opening turn more than 800 metres in length.
Verstappen, starting fifth, got on the kerbs and ran off onto the grass. The Dutchman came close to hitting the wall, emerged back on track in third, then gave that place back to Ferrari's Lewis Hamilton.
Mercedes driver George Russell felt Verstappen should have returned to fifth, where he was running, but the stewards cleared Verstappen of any wrongdoing.
Meanwhile, Oscar Paistri struggled off the start and then ran wide at the first corner, dropping from seventh to ninth.
With his teammate streaking clear with the race lead, Piastri needed to slice through the field on a circuit that is not easy to overtake on.
A battle for third place between Verstappen and Hamilton resulted in both going off track. Hamilton's excursion cost him a penalty as he did not follow the escape road and emerged on track with a much bigger lead than he had.
That penalty of 10 seconds ended Hamilton's podium chances, and he placed eighth.
Meanwhile, Haas's Oliver Bearman moved into third place.
Once the first pit stops had been completed, Norris and Leclerc were out in front, Verstappen was eighth but on much fresher tyres, while there was a battle between Bearman, Russell, Kimi Antonelli, Piastri and Hamilton.
All drivers elected to pit for a second time, with Piastri being able to jump Antonelli in the pits.
The battle for fourth was a three-way fight between Bearman, Russell and Piastri.
Piastri made the move on Russell with 11 laps to go, but did not have enough time to catch Bearman, who was three seconds up the road.
Follow all the action of the Formula 1 Mexico City Grand Prix on the live blog below.
[blog]