Lewis Hamilton recovered from a mistake on his first flying lap in Q3 to secure pole position for the Spanish Grand Prix, ahead of Mercedes team-mate Nico Rosberg.
Hamilton set a rapid sector one time on his first Q3 effort but locked up both tyres heavily into Turn 10, missing the apex and compromising the remainder of his lap.
It left Rosberg with an advantage of eight-tenths of a second after the first runs, with Hamilton in third spot.
Hamilton set a sequence of blistering sector times on the second run to move to the front with a time of 1:22.000.
Rosberg also improved during his second run but was unable to match Hamilton's effort and finished the session 0.280s adrift of his team-mate.
Red Bull overhauled Ferrari as Daniel Ricciardo repelled an initial threat from new team-mate Max Verstappen to take third, with the Dutch youngster fourth.
Ferrari could manage only fifth and sixth with Kimi Räikkönen ahead of Sebastian Vettel, as Williams was seventh courtesy of Valtteri Bottas.
Both Spanish drivers made it through into Q3 with Carlos Sainz Jr. eighth and Fernando Alonso in 10th, marking McLaren’s first appearance in the final segment of qualifying since its reunion with Honda.
Sergio Pérez split the home favourites by placing ninth for Force India.
Nico Hülkenberg missed out on a Q3 slot by just 0.011s and will start from 11th position, ahead of Jenson Button and Daniil Kvyat, who was unable to match the pace of Sainz Jr. as he prepares for his first race back with Toro Rosso.
Romain Grosjean and Esteban Gutiérrez were 14th and 16th for Haas, split by the Renault of Kevin Magnussen.
Jolyon Palmer failed to make it out of Q1 for the fourth successive Grand Prix and will start from 17th spot in the Renault RS16.
Felipe Massa completed only one run in Q1 and blamed traffic on a lap which left him a lowly 18th.
Marcus Ericsson beat Sauber team-mate Felipe Nasr by three-tenths of a second to take 19th, while Pascal Wehrlein improved on his second run to overhaul Manor stablemate Rio Haryanto, with the duo set to round out the back row of the grid.