Ducati's Andrea Dovizioso took his second MotoGP pole position of the season during a wet qualifying session at Sepang in Malaysia.
The Italian hit the top early in the session, then dived into the pits to switch to the harder of the wet tyres and confirmed pole by improving on his last lap.
The frantic closing stages also saw Valentino Rossi leapfrog Movistar Yamaha team-mate Jorge Lorenzo for second on the grid, with reigning world champion Marc Marquez securing fourth for Repsol Honda after missing Friday afternoon due to sickness.
Cal Crutchlow, celebrating his 30th birthday today, remounted after a fall from his LCR Honda and climbed from last to fifth on his final lap. The Englishman had led Qualifying 1 with a time of 2m 11.591s, which would have been good enough to beat all but Dovizioso had he repeated it in Q2.
Dovizioso's returning team-mate Andrea Iannone will join Marquez and Crutchlow on row two of Sunday's grid.
Aleix Espargaro was another faller, but remained the top Suzuki rider in seventh, edging out team-mate Maverick Vinales (quickest in the dry FP3) by 0.112s.
Alvaro Bautista continued Aprilia's encouraging form with ninth, ahead of Loris Baz (Avintia Ducati), Pol Espargaro (Tech 3 Yamaha) and Hector Barbera (Avintia Ducati).
Dovizioso's previous pole was also in the wet, at Assen, where he fell in the race. The Italian will be seeking to become MotoGP's ninth different winner of the season on Sunday, the penultimate race of the year.
1. Andrea Dovizioso
2. Valentino Rossi
3. Jorge Lorenzo
4. Marc Marquez
5. Cal Crutchlow
6. Andrea Iannone
7. Aleix Espargaro
8. Maverick Viñales
9. Alvaro Bautista
10. Loris Baz
11. Pol Espargaro
12. Hector Barbera
CLICK HERE for full results