Marc Marquez's fantastic Sachsenring record continued in qualifying as he grabbed pole position while Jorge Lorenzo had an afternoon to forget.
Lorenzo had to progress through Q1 for the first time in his career after failing to post a top-ten time during the weekend's earlier practice sessions.
The Yamaha rider was fortune to make it through as he was second when he crashed at Turn 8 in the final minutes of the session. He got it wrong on the kerbs with the front end of his YZR-M1 washing away.
Lorenzo, who was under threat from Cal Crutchlow at the time, made it through to Q2 by a mere 0.04s.
But his trouble were by no means over as he crashed again, this time going down at Turn 1, to qualify down in 11th place.
It was a completely different session for his main title rival Marquez, who leads the riders' standings by 24 points.
He grabbed pole position with a 1:21.160 while Hector Barbera, who slip-streamed the Honda rider around the circuit, was second fastest, 0.412s off the pace.
Valentino Rossi completed the front row of the grid as, although his time was the exact same as Danilo Petrucci's, he had the better second fastest time.
Pol Espargaro qualified fifth ahead of Maverick Vinales, Andrea Dovizioso and Aleix Espargaro.
1 Marc MARQUEZ Repsol Honda Team 1'21.160
2 Hector BARBERA Avintia Racing 1'21.572 0.412
3 Valentino ROSSI Movistar Yamaha MotoGP 1'21.666 0.506
4 Danilo PETRUCCI OCTO Pramac Yakhnich 1'21.666 0.506
5 Pol ESPARGARO Monster Yamaha Tech 3 1'21.738 0.578
6 Maverick VIÑALES Team SUZUKI ECSTAR 1'21.784 0.624
7 Andrea DOVIZIOSO Ducati Team 1'21.858 0.698
8 Aleix ESPARGARO Team SUZUKI ECSTAR 1'21.883 0.723
9 Andrea IANNONE Ducati Team 1'21.890 0.730
10 Dani PEDROSA Repsol Honda Team 1'21.892 0.732
11 Jorge LORENZO Movistar Yamaha MotoGP 1'22.088 0.928
12 Yonny HERNANDEZ Pull & Bear Aspar Team 1'22.346 1.186
13 Cal CRUTCHLOW LCR Honda 1'21.783
14 Bradley SMITH Monster Yamaha Tech 3 1'21.994
15 Scott REDDING OCTO Pramac Yakhnich 1'22.236
16 Jack MILLER Estrella Galicia 0,0 Marc VDS 1'22.382
17 Stefan BRADL Aprilia Racing Team Gresini 1'22.493
18 Eugene LAVERTY Pull & Bear Aspar Ducati Team 1'22.567
19 Alvaro BAUTISTA Aprilia Racing Team Gresini 1'22.670
20 Loris BAZ Avintia Racing 1'22.860
21 Tito RABAT Estrella Galicia 0,0 Marc VDS 1'23.075