Spain's Alex Rins has won a dramatic Australian Motorcycle Grand Prix after local favourite Jack Miller crashed out on lap eight.
The Suzuki rider pinched the lead from Italian star Francesco Bagnaia on the final lap to win a classic race at Phillip Island.
The thrilling climax resulted in the second-closest top-10 in MotoGP history,
Rins pipped his resurgent countryman, the legendary six-time world champion Marc Marquez, with Bagnaia in third for the fourth win of his career.
"The last time here with the Suzkuis is special, it's an amazing feeling and to go out with a victory," the 26-year-old said.
Bagnaia will be left disappointed not to have won a race he led for the majority but the result will still prove crucial towards his world championship hopes.
The Italian headed to the first Australian GP since 2019 trailing defending world champion Fabio Quartararo by two points in this year's title race.
However, the 25-year-old will leave the Victorian track with a handy buffer, putting him in the box-seat to claim his first MotoGP title after Quartararo was forced to retire.
Quartararo made a big mistake early in the race, running wide into the sand on lap-three at the newly named Miller Corner.
His race ended for good on lap 10 as he came off the track in a disastrous outcome for his title aspirations.
In a major blow for Australian fans, Miller was taken out of the race by Spaniard Alex Marquez on lap eight.
The star Australian was a chance to claim his maiden MotoGP win at the island as he rode in fifth place but Marquez crashed into him from behind.
The luckless 27-year-old came flying off his Ducati, immediately ending his race, with Marquez also forced to retire.
It not only ended Miller's Australian GP hopes but also his slim chance of winning this year's world championship, with two races remaining in the season.
Fellow Australian Remy Gardner finished 15th in what could be his only MotoGP race at Phillip Island as the 24-year-old moves to the World Superbike Series next year.
Meanwhile, Spain's Alonso Lopez claimed a dramatic Moto2 race that ended with several riders requiring medical attention after crashing out.
Jorge Navarro lay injured on the side of the track for the duration of two laps after being struck by Italian Simone Corsi.
The race continued despite calls for it to be red-flagged.
Officials said Corsi and Navarro were taken to the medical centre for assessment.
In Moto3, Spanish young gun Izan Guevara secured the championship with a brilliant victory in the first race of the day.
The 18-year-old will take an unassailable advantage into the final two rounds of the season after beating Turkey's Deniz Oncu in the lightweight class.
AUSTRALIAN MOTORCYCLE GRAND PRIX RESULT
1. Alex Rins (Suzuki)
2. Marc Marquez (Honda)
3. Francesco Bagnaia (Ducati)
4. Marco Bezzecchi (Ducati)
5. Enea Bastianini (Ducati)
6. Luca Marini (Ducati)
7. Jorge Martin (Ducati)
8. Johann Zarco (Ducati)
9. Aleix Espargaro (Aprilia)
10. Brad Binder (KTM)