Lewis Hamilton beat Max Verstappen to pole position at the German Grand Prix as the Ferraris hit technical problems.
Ferrari driver Charles Leclerc looked favourite for pole but was unable to take part in the top-10 shootout.
And team-mate Sebastian Vettel will start last after a turbo problem meant he failed to set a time and will start last on the grid for Sunday’s race.
Hamilton took pole by 0.346 seconds, with only 0.022secs between Verstappen, Valtteri Bottas and Pierre Gasly.
Can anything stop Hamilton?
It was a superb performance by Hamilton, who has been ill this weekend at Hockenheim.
“Lewis, you never fail to amaze us,” team boss Toto Wolff said to him over the radio after the session.
Hamilton said: “The car has been feeling good, but the Ferraris have been on another level. If Leclerc had been there, it would definitely have been close between us.”
Even without the Ferraris in contention, the front row of Hamilton and Red Bull’s Verstappen promises a close battle in the race, especially as wet weather threatens.
Can anything stop Ferrari’s unreliability?
But in many ways the story of the session was Ferrari’s failure yet again to capitalise on what appeared to be an advantage.
Ferrari said Leclerc’s problem was with his fuel system, and it looked to have deprived him of what could have been his third pole position of his first season at Ferrari.
It was the latest in a series of issues for Ferrari, whether with reliability or operational or driver errors, that have blighted a season in which they could have had at least two wins so far, and possibly more.
Vettel’s problem was different from Leclerc’s – his car had a problem with airflow to the turbo. It was the second reliability problem for the German four-time world champion in three races.
Ferrari’s problems mean the Alfa Romeo of Kimi Raikkonen will start fifth, ahead of Haas’ Romain Grosjean, McLaren’s Carlos Sainz, Renault’s Nico Hulkenberg and Leclerc.
Sainz’s team-mate Lando Norris was 16th, just 0.2secs down in first qualifying, but small margins made a big difference on a relatively short track – for example, just 0.03secs separated Hulkenberg in eighth place from team-mate Daniel Ricciardo in 13th in second qualifying as the drivers battled for places in the top-10 shootout.
Williams’ George Russell starts 18th, ahead of team-mate Robert Kubica for the 11th race in a row, but this time just 0.118secs faster than the Pole.