Lewis Hamilton has claimed pole position during qualifying for the Spanish Grand Prix after pipping teammate Valtteri Bottas to top spot.
The Mercedes drivers locked out the front row, Hamilton just four hundredths of a second ahead.
Ferrari's Sebastian Vettel, meanwhile, finished in third ahead of fourth-placed teammate Kimi Raikkonen.
Hamilton also ended Vettel's pole streak, with the German previously having secured three fastest times in a row.
The Red Bull pair of Max Verstappen and Daniel Ricciardo secured the third row, while Fernando Alonso put a McLaren in the top 10 for the first time this season, eighth behind Kevin Magnussen of Haas.
Carlos Sainz of Renault and Romain Grosjean of Haas rounded off the top 10.
Spanish GP qualifying standings:
1. Lewis Hamilton (Mercedes)
2. Valtteri Bottas (Mercedes)
3. Sebastian Vettel (Ferrari)
4. Kimi Raikkonen (Ferrari)
5. Max Verstappen (Red Bull)
6. Daniel Ricciardo (Red Bull)
7. Kevin Magnussen (Haas)
8. Fernando Alonso (McLaren)
9. Carlos Sainz Jr (Renault)
10. Romain Grosjean (Haas)
11. Stoffel Vandoorne (McLaren)
12. Pierre Gasly (Toro Rosso)
13. Esteban Ocon (Force India)
14. Charles Leclerc (Sauber)
15. Sergio Perez (Force India)
16. Nico Hulkenberg (Renault)
17. Marcus Ericsson (Sauber)
18. Sergey Sirotkin (Williams)
19. Lance Stroll (Williams)
20. Brendon Hartley (Toro Rosso)