Casey Stoner snatched pole position at the end of an enthralling qualifying session for the German MotoGP at a soaking wet Sachsenring.
The reigning world champion overcame a technical problem, which saw him park his Repsol Honda, to become the fourth and final rider to occupy pole position after
the chequered flag had been waved!
Yamaha's Ben Spies will start second after lapping 0.193s from Stoner, whose HRC team-mate Dani Pedrosa completed a front row covered by 0.285s.
Barring a dry Friday morning practice, the sessions since have all been wet and - unlike Saturday morning practice - there was no chance of a slick-tyre window emerging in qualifying.
But the rain did ease in the final ten minutes, triggering a constant tug-of-war for the top spot, which finally reached its climax with Stoner's 38th premier-class pole.
The last ten minutes saw pole change on a staggering 15 occasions, as seven different riders made at least one visit to the top: Jorge Lorenzo, Nicky Hayden, Stefan Bradl, Spies, Cal Crutchlow, Stoner and Pedrosa.
In total, pole time changed 29 times during the hour.
Row two of Sunday's race will be headed by Yamaha Tech 3 rider Crutchlow and Factory M1 star Lorenzo, now tied with Stoner for the world championship lead after his first turn Assen misery.
MotoGP rookie and home hero Stefan Bradl warmed the hearts of the drenched German fans by leading the way for Honda LCR on numerous occasions - including from the 29th to 51st minute - but was pushed down to sixth in the end-of-session reshuffle.
Factory Ducati rider Hayden also had reason to feel hard done by, after being a pole contender throughout the hour, but dropping to seventh when the final laps had been registered.