Andrea Dovizioso has stormed to a dramatic pole position ahead of Sunday's Dutch Grand Prix at Assen.
The damp qualifying session was chaotic from the get-go, with riders struggling to find grip, but conditions improved as the clock ran down and the Ducati rider snatched top spot with a time of 1 min 45.346 sec in his final lap of the session.
Yamaha's Valentino Rossi was 0.7 sec back in second, while Scott Redding was third quickest and will start on the front row for the first time in his career.
Championship leader Marc Marquez crashed early in the session, on an outlap, but he bounced back well to qualify fourth fastest.
The Honda rider grabbed a parked scooter after his fall to race back to the pits and jump on his second bike.
Cal Crutchlow will start fifth on his LCR Honda ahead of Colombia's Yonny Hernandez.
Jorge Lorenzo's bid to win consecutive world titles took a hit in qualifying a disappointing 10th.
Honda rider Dani Pedrosa suffered a crash in FP4 and never looked comfortable in qualifying, he will start 15th.