Sebastian Vettel overhauled Ferrari team-mate Kimi Raikkonen to claim pole position for the Chinese Grand Prix during a thrilling conclusion to qualifying on Saturday.
Raikkonen held the advantage after the first Q3 runs and improved on his second push lap to move further ahead, but the pursuing Vettel knocked his team-mate from the top of the pecking order in a near-repeat of last week's qualifying session in Bahrain.
Vettel's pole-winning time of 1:31.095s marked a new track record in Shanghai as he wound up 0.087s faster than Raikkonen.
It marked Ferrari's first pole position in China since the country's inaugural race in 2004, as the marque also secured successive front-row lock-outs for the first time since 2006.
Mercedes wound up third and fourth, with Valtteri Bottas ahead of World Champion team-mate Lewis Hamilton, who found only 0.003s on the time from 12 months ago that earned him pole position.
Both Mercedes drivers looked to have found pace in their Q2 runs, in which they and Ferrari completed their hot laps on the Soft tyres, with a view to Sunday's Grand Prix.
However, the team could not translate that pace on Ultrasoft into the final part of qualifying.
Red Bull locked out the third-row of the grid, with Max Verstappen ahead of Daniel Ricciardo, the latter only joining the action during the closing stages of Q1 after needing a power unit change prior to qualifying.
Nico Hulkenberg took seventh place after another superb performance in the Renault, beating ex-Force India team-mate Sergio Perez by two-tenths of a second.
Carlos Sainz edged Romain Grosjean at the lower end of the Q3 order.
The battle to get into Q3 was very tight as the Haas of Kevin Magnussen missed out narrowly missed on the final part of qualifying, but was able to qualify ahead of Force India's Esteban Ocon as the pace of the midfield battle continues to tighten up.
McLaren used slipstreaming tactics along the back straight but it led to only 13th and 14th respectively for Fernando Alonso and Stoffel Vandoorne as the team suffered another double Q2 exit.
Brendon Hartley finished as the slowest Q2 runner in 15th place.
Williams' struggles continued as both cars again failed to get both cars into Q2 after a tough session; Sergey Sirotkin came the closest to Q2 after finishing within half a tenth of Hartley, as he classified two spots clear of team-mate Lance Stroll.
Toro Rosso's Pierre Gasly was unable to replicate his pace from Bahrain and could not find the pace in the STR13 to get out of the first part of qualifying, leaving him a low-key 17th.
Sauber also struggled to get up to speed as both Charles Leclerc and Marcus Ericsson made errors in the session.
Ericsson locked up at the Turn 14 hairpin on his final run, while the Monegasque driver dropped his car on the exit of the final corner and had a half spin with a few minutes to go, but will be able to take solace from beating his more experienced team-mate for the first time.