Nico Rosberg secured pole position for his home race as he beat Mercedes team-mate Lewis Hamilton during qualifying at Hockenheim.
Rosberg recovered from an electronics issue on his first Q3 run to sweep to top spot with a time of 1:14.363.
Rosberg’s lap proved to be 0.107s up on Hamilton, who drifted slightly wide at Turn 1 and locked up into the hairpin on his final effort.
It nonetheless proved to be quicker than his benchmark as he rounded out an all-Mercedes front row.
Red Bull locked out the second row of the grid courtesy of Daniel Ricciardo and Max Verstappen, while Kimi Räikkönen beat Sebastian Vettel to fifth spot.
Nico Hülkenberg was the lead Force India driver in seventh, with Valtteri Bottas edging Sergio Pérez to take eighth place.
Felipe Massa completed the top 10 for Williams.
Haas’ Esteban Gutiérrez marginally missed out on his first Q3 appearance by placing 11th, in front of McLaren’s Jenson Button.
Carlos Sainz Jr. is under investigation for impeding Massa at Turn 2 but was unable to escape Q2 and placed 13th for Toro Rosso, with Fernando Alonso in 14th.
Alonso drifted wide exiting Turn 12 on his final hot lap and was unable to challenge for the top 10 positions, as both McLaren drivers were knocked out in the second stage of qualifying.
Romain Grosjean qualified 15th but will drop to 20th courtesy of a gearbox penalty while Jolyon Palmer made it through to Q2 for the first time since Australia.
Palmer was nonetheless the slowest of the 16 competitors, some six-tenths shy of nearest rival Grosjean.
Renault’s Kevin Magnussen missed out on Q2 by a tenth of a second but edged out Manor’s Pascal Wehrlein by just 0.001s to take 17th position.
Wehrlein briefly occupied 13th spot but was shuffled down the order as rivals improved and was unable to escape Q1 at his home event.
Daniil Kvyat was left a frustrated 19th for Toro Rosso as Manor’s Rio Haryanto beat both Sauber drivers, with Felipe Nasr and Marcus Ericsson at the back of the grid.