Valencia - Italy's Andrea Dovizioso won the season-ending Valencia Grand Prix on Sunday, as 13 riders failed to finish a chaotic rain-lashed race.
Ducati's Dovizioso was well ahead of second placed Suzuki rider Alex Rins with another Spaniard Pol Espargaro third in a race halted for around 30 minutes due to the rain.
World champion Marc Marquez pulled out after going over his handlebars at an early corner following a spectacular high-speed loss of control.
Yamaha's Valentino Rossi was another high-profile faller, his late exit from second position allowing Espargaro and KTM to clinch a place on the podium for the first time in the premier class.
Rossi still finished the championship in third place, behind Dovizioso and Marquez.
Dovizioso's victory was his fourth of the season and a first for Ducati in Valencia in 10 years.
"It was a crazy race, at the beginning I didn't have a lot of feeling and Rins started so fast, I couldn't follow him," Dovizioso told reporters.
"Step by step, I became a bit faster and it was very dangerous. I am proud not to crash because there was too much water.
"After the restart we made some changes on the bike and we put on new tyres and I felt so good, the bike worked well and I was able to push as much as I wanted and it was too much for the competitors.
"It's a nice feeling to finish the championship like this."
On his first podium finish, Espargaro said: "Even fourth would have been an unbelievable position. I am so proud, to be here on the podium, standing with the best bikes in the world. I'm super happy."
Michele Pirro, also of Ducati, came fourth while Honda's Dani Pedrosa finished fifth in his last MotoGP race before retirement.
Rins had led for the majority of the race, including after a red flag reset the race to lap 13, as wet conditions became too dangerous to continue.
There were numerous crashes in the Moto3 and Moto2 races earlier on Sunday while Marquez started the race fifth, after the Spaniard injured his shoulder in a fall during qualifying on Saturday.
Maverick Vinales, on pole, had said he was only targetting a top-seven place given the challenging conditions at the Circuit Ricardo Tormo and he quickly surrendered his advantage to Rins, who led by almost two seconds after only the opening lap.
Rossi started 15th on the grid but shot up to eighth as several riders fell victim to the weather.
Aleix Espargaro, Danilo Petrucci, Jack Miller and Michele Pirro all crashed before Marquez also twisted out through Turn 9.
Rins gave up his lead, running wide around a turn as both Dovizioso and Rossi passed through, only for the rain to become too severe, pushing the race back to lap 13.
When the action resumed, Rins was again overtaken by the chasing pair, but Rossi failed to keep pace with Dovizioso and crashed out on Turn 12, with just five laps remaining.
Rins crossed the line 2.750 seconds behind Dovizioso, while Espargaro and Pirro recovered from earlier falls to take third and fourth respectively.
Collated results from the Valencia motorcycling Grand Prix, the final leg of the 19-race world championship, on Sunday:
1. Andrea Dovizioso (ITA/Ducati) 24min 03.408sec, 2. Alex Rins
(ESP/Suzuki) at 2.750sec, 3. Pol Espargaro (ESP/KTM) 7.406, 4. Michele
Pirro (ITA/Ducati) 8.647, 5. Dani Pedrosa (ESP/Honda) 13.351, 6. Takaaki
Nakagami (JAP/Honda) 32.288, 7. Johann Zarco (FRA/Yahama) 32.806, 8.
Bradley Smith (GBR/KTM) 33.111, 9. Stefan Bradl (GER/Honda) 36.376, 10.
Hafizh Syahrin (MAL/Yamaha) 37.198
1. Marc Marquez (ESP/Honda) 321 points, 2. Andrea Dovizioso
(ITA/Ducati) 245, 3. Valentino Rossi (ITA/Yamaha) 198, 4. Maverick
Vinales (ESP/Yamaha) 193, 5. Alex Rins (ESP/Suzuki) 169, 6. Johann Zarco
(FRA/Yamaha) 158, 7. Cal Crutchlow (GBR/Honda) 148, 8. Danilo Petrucci
(ITA/Ducati Pramac) 144, 9. Jorge Lorenzo (ESP/Ducati) 134, 10. Andrea
Iannone (ITA/Suzuki) 133
1. Miguel Oliveira (POR/KTM) 45:07.639, 2. Iker Lecuona (ESP/KPM) at 13.201, 3. Alex Marquez (ESP/Kalex) 22.175
Overall Moto2 standings
1. Francesco Bagnaia (ITA/Kalex) 306pts, 2. Miguel Oliveira (POR/KTM) 297, 3. Brad Binder (RSA/KTM) 201
1. Can Oncu (TUR/KTM) 43:06.370, 2. Jorge Martin (ESP/Honda) at 4.071, 3. John McPhee (GBR/KTM) 6.130
Overall Moto3 standings
1. Jorge Martin (ESP/Honda) 260pts, 2. Fabio Di Giannantonio (ITA/Honda) 218, 3. Marco Bezzecchi (ITA/KTM) 214