Sandro Cortese beat Maverick Vinales in a dramatic climax to what had already been a thrilling Moto3 race at Estoril.
What initially began as a huge scrap for the lead eventually boiled down to just Vinales (Avintia FTR-Honda) and Cortese (Ajo KTM), with the latter opting to shadow Vinales - to the extent of sitting up early on the straights - for much of the race.
With five laps to go Cortese made his move, but Vinales responded immediately and a frantic shoot-out commenced over the final laps.
Further drama came in the form of backmarkers on the last lap, with Vinales and Cortese diving either side of traffic on the run down to the chequered flag. In the end, victory was decided in Cortese's favour by just 0.083 seconds.
The German takes over the championship lead as a result of his win.
The pair's battle was one of several throughout the field, as positions swapped lap by lap.
Luis Salom (RW Kalex-KTM) and Zulfahmi Khairuddin (Ajo KTM) were one such example, scrapping over the final podium spot throughout the second half of the race. Salom eventually denied the Malaysian his maiden grand prix podium.
The order fluctuated even more further down the field, with myriad riders all challenging for fifth at some point during the race.
The position was eventually claimed by Efren Vazquez (Laglisse Honda) ahead of Niccolo Antonelli (Gresini Honda), while Alex Rins (Monlau Honda) got the better of Danny Kent (Ajo KTM) in the fight for seventh.