A track record lap earned pole position for Dani Pedrosa for tomorrow's MotoGP Gran Premio D'Italia at Mugello.
The Spaniard powered his Repsol Honda around the three-and-a-quarter-mile circuit in one minute 47.284 seconds in the closing seconds of the session to pip compatriots Jorge Lorenzo and Hector Barbera to top spot.
Yamaha's Lorenzo had led the standings until that point but a mechanical problem which caused his bike to lose power prevented him from completing his final flying lap.
Barbera, riding for Pramac Racing, claimed his first front row grid position since stepping up to MotoGP in 2010.
American Nicky Hayden (Ducati) edged out Pedrosa's Australian team-mate Casey Stoner for fourth place while Monster Yamaha pair Cal Crutchlow and Andrea Dovizioso were separated by just two hundredths of a second in the battle for sixth.
The Briton won the battle despite a crash, Italian Dovizioso narrowly avoiding the same fate late on while pushing for a place on the second row.
Stefan Bradl (Honda) is eighth ahead of Ben Spies, who crashed his Yamaha in the same spot as Crutchlow on turn 12. Valentino Rossi could only manage 10th place for Ducati.