Francesco Bagnaia held off Marc Marquez in a sensational Aragon Grand Prix to claim a maiden win in MotoGP.
The Ducati rider and his Spanish rival, aiming to win on his fifth straight appearance at the track having not raced there in 2020, exchanged position several times over the course of a pulsating finish.
But the Italian, who started on pole, put on a masterclass to beat Repsol Honda rider Marquez in his own backyard to clinch an unbelievable victory and move up to second in the riders' standings.
Bagnaia finished down in 14th last time out at the British Grand Prix for his worst result in two years but he and Marquez stole a march on the chasing pack this time around.
It has been a largely disappointing season for the legendary Marquez, who missed almost the entirety of 2020 through injury, yet there were signs of his best in a thrilling chase.
Marquez made his first move at Turn 5 with three laps to go, only to go wide and allow Bagnaia to reclaim the lead.
That theme continued for the rest of the race as Marquez made several passes and on each occasion giving it back, until finally he went off track at Turn 12 allowing Bagnaia to finally claim a win in the premier class.
Defending world champion Joan Mir rounded out the podium, while riders' standings leader Fabio Quartararo finished a distant eighth but was the only Yamaha rider inside the points.
Aleix Espargaro was fourth ahead of Jack Miller, who was on course for a podium finish until a costly error midway through the race saw him lose position.
1. Francesco Bagnaia (Ducati)
2. Marc Marquez (Repsol Honda) +0.673s
3. Joan Mir (Suzuki Ecstar) +3.911s
4. Aleix Espargaro (Aprilia Racing) +9.269s
5. Jack Miller (Ducati) +11.928s
6. Enea Bastianini (Avintia) +13.757s
7. Brad Binder (Red Bull KTM) +14.064s
8. Fabio Quartararo (Monster Energy Yamaha) +16.575s
9. Jorge Martin (Pramac Racing) +16.615s
10. Takaaki Nakagami (LCR Honda) +16.904s
1. Fabio Quartararo (Monster Energy Yamaha) 214
2. Francesco Bagnaia (Ducati) 161
3. Joan Mir (Suzuki Ecstar) 157
4. Johann Zarco (Pramac Racing) 137
5. Jack Miller (Ducati) 129
1. Monster Energy Yamaha 309
2. Ducati 290
3. Suzuki Ecstar 225
4. Pramac Racing 212
5. Red Bull KTM 204