Kimi Raikkonen seized McLaren's first pole position of the Formula One season at the German Grand Prix on Saturday.
The Finn will share the front row with Ferrari's seven-times world champion Michael Schumacher, who missed out on a third successive pole position by 0.135 seconds in front of his raucous home fans.
Renault's world champion Fernando Alonso, winner at Hockenheim last year and 17 points clear of Schumacher in the championship with seven races remaining, qualified a distant seventh.
Raikkonen's pole was McLaren's first since Colombian Juan Pablo Montoya, now absent after deciding to switch to the USA-based NASCAR series, in Belgium in September last year.
'It was nice to get pole. We had some difficulties but it's the best place to start and let's see what happens tomorrow,' said the Finn, who has not won a race since the thriller in Japan last October.
'The tyres have been very good all weekend,' he added. 'We found something new for the car at the last test which seems to help. The car is better now.'
It was the ninth pole of his career, and second in a row at Hockenheim, and Raikkonen will be hoping to translate his advantage into a long-awaited victory in engine partners Mercedes' backyard.
In his five starts at the southern circuit, Raikkonen has failed to finish despite leading in both the last two appearances there.
Brazilian Felipe Massa qualified third for Ferrari with Briton Jenson Button, out of the points for the past five races, alongside for Honda and Renault's Italian Giancarlo Fisichella behind in fifth.
Alonso, celebrating his 25th birthday, almost collided with 37-year-old Schumacher in the pit lane in the heat of the battle.
'We are quite happy to have a strong opponent with us and having Alonso where he is right now,' said Schumacher, who was 0.135 seconds slower but remains well placed to chase a hat-trick of wins on Sunday.
'That's obviously a good starting point. I exited the pit lane and once I was out I saw that Fernando was pretty close to me,' Schumacher said of the incident.
He added: 'I wasn't aware that he was there, because there were so many people, so much mess and it was so tight. If he felt there was some problem for him, then I'm sorry for that. But that's the way it goes sometimes.'
While Raikkonen filled the top slot, despite running wide on to the gravel on his final flying lap, Spanish team mate Pedro de la Rosa was ninth after colliding with Toyota's Ralf Schumacher at the hairpin. Ralf qualified eighth.
The first part of the knockout session was red-flagged after five minutes when Toro Rosso's American Scott Speed ran wide, spun and hit the wall.
Toyota's unlucky Italian Jarno Trulli will start at the back of the grid, after qualifying 13th, because of an unscheduled engine change in practice that cost him 10 places.
FINAL GRID POSITIONS FOR GERMAN GRAND PRIX
1 Michael Schumacher (Germany) Ferrari 1:13.778
2 Felipe Massa (Brazil) Ferrari 1:14.094
3 Jenson Button (Britain) Honda 1:14.378
4 Kimi Raikkonen (Finland) McLaren 1:14.410
5 Giancarlo Fisichella (Italy) Renault 1:14.540
6 Rubens Barrichello (Brazil) Honda 1:14.652
7 Ralf Schumacher (Germany) Toyota 1:14.743
8 Fernando Alonso (Spain) Renault 1:14.746
9 David Coulthard (Britain) RedBull-Ferrari 1:14.826
10 Pedro de la Rosa (Spain) McLaren 1:15.021
11 Mark Webber (Australia) Williams-Cosworth 1:15.094
12 Christian Klien (Austria) RedBull-Ferrari 1:15.141
13 Jarno Trulli (Italy) Toyota 1:15.150
14 Jacques Villeneuve (Canada) BMW Sauber 1:15.329
15 Nico Rosberg (Germany) Williams-Cosworth 1:15.380
16 Nick Heidfeld (Germany) BMW Sauber 1:15.397
17 Vitantonio Liuzzi (Italy) Toro Rosso-Cosworth 1:16.399
18 Christijan Albers (Netherlands) MF1-Toyota 1:17.093
19 Takuma Sato (Japan) Super Aguri-Honda 1:17.185
20 Tiago Monteiro (Portugal) MF1-Toyota 1:17.836
21 Sakon Yamamoto (Japan) Super Aguri-Honda 1:20.444
22 Scott Speed (USA) Toro Rosso-Cosworth