Fernando Alonso claimed his and Ferrari's first pole position since the 2010 Singapore Grand Prix as he came out on top of a tight battle with Red Bull's Mark Webber in a drying and delayed British GP qualifying session at Silverstone.
The session was interrupted for over an hour and a half when the level of standing water became impossible to handle. By the time it resumed, conditions were much improved, and although full wets were still the best choice for the remaining six minutes of Q2, intermediates were the way to go in the pole shoot-out.
Webber looked to be in good shape as he put himself 0.8 seconds clear of the pack with a 1m51.793s in the closing minutes, only for Alonso to pip it by 0.047s. Webber's reply was not quite quick enough and he had to be content with the outside of the front row.
Germany's two Formula 1 world champions will share row two. Michael Schumacher produced one of his best qualifying efforts for Mercedes as he secured third ahead of the second Red Bull of Sebastian Vettel.
Ferrari got both its cars in the top five, as Felipe Massa qualified fifth.
Romain Grosjean qualified for Q3 only to the spin into the gravel at Vale at the end of Q2. With his Lotus beached, he had to sit out Q3 and settle for 10th.
Inevitably there were some midfield upsets in the rain. Nico Rosberg (Mercedes) was third at the red flag but tumbled to 13th after the restart while Sauber's Sergio Perez dropped further still. Fastest before the stoppage, his choice of intermediates proved too ambitious and he tumbled to 17th.
The headline story from Q1 was yet another Silverstone disappointment for Jenson Button. The McLaren driver could do no better than 18th, his final lap hamstrung by more rain arriving in the final sector plus yellow flags for Timo Glock's spun Marussia on the exit of Club.
Hamilton was the only home driver in the top 10, Paul di Resta (Force India) being edged out of a Q3 place by Alonso in the closing moments, leaving the Scot 11th.