Nick Heidfeld will start the European Grand Prix on pole position, just beating Kimi Raikkonen into second.
It was double celebration for Heidfeld as the race takes place in his home country of Germany, and it was his first ever pole position.
Championship leader Fernano Alonso qualified in sixth place, one place behind Juan Pablo Montoya.
The Britons didn't do so well, with David Coulthard in 12th place just in front of Jenson Button in 13th.
World champion Michael Schumacher also had another bad day on the track, steering his Ferrari to 10th place.
The McLaren team of Raikonnen and Montoya will hope Williams are still having problems with their start when Sunday's race begins.
The European Grand Prix is the first race since a change to the qualifying format which means there is now only one qualifying session, on Saturday.