Francesco Bagnaia capitalised on Jorge Martin's late crash to win the German MotoGP on Sunday and take control of the world championship.
South Africa’s Brad Binder, meanwhile, finished in ninth place after a difficult race.
Martin appeared to have the race wrapped up but made a mistake and fell at turn one on the penultimate lap to hand the win to the double world champion.
Marc Marquez, who will be Bagnaia's teammate next season on the factory Ducati, took second, with Alex Marquez, his younger brother, completing the podium.
Martin's dramatic departure from the Sachsenring stage gifted not only the race victory to Bagnaia but also the riders' standings.
Bagnaia heads into MotoGP's summer break 10 points clear of Martin.
"It wasn't easy," said Bagnaia.
"I saw Jorge was starting to make some mistakes, then when he had his crash I just slowed down a lot. (I'm) very happy. It's the first time I win here in Sachensring."
Marc Marquez is an eight-time winner on this circuit but the six-time former world champion has not won a race since October 2021.
"I promise you I would trade a victory to be on the podium with my brother, it's an amazing feeling."
The day had been going perfectly for Martin, who won Saturday's sprint race to hold a 15-point cushion at the top of the standings.
The pole-sitter held off Miguel Oliveira at the start, with Bagnaia moving up into second by the end of lap one.
'Pecco' then hunted down and went past his prey, Martin, on the following lap, but was unable to pull away on his factory Ducati and Martin was back in control of the race with 23 laps to go.
The Spaniard, on Ducati's satellite Pramac bike, did what Bagnaia was unable to do - put daylight between the pair.
With a third of the 30-lap contest remaining Martin was over half a second clear of his Pramac teammate Franco Morbidelli, with Bagnaia relegated to third.
But only briefly, as the double world champion nipped past Morbidelli with Martin now almost a second away up the road.
Bagnaia bided his time, and his patience paid off in the most cruel way for Martin, who slithered out of the race and off the top of the standings with an error under pressure.
AFP