Lewis Hamilton has sealed what could turn out to be a crucial pole position for the Spanish Grand Prix after edging out championship rival Sebastian Vettel.
Hamilton, who secured the 64th pole of his career to move to within one of his boyhood hero Ayrton Senna, finished just 0.051 seconds ahead of Vettel following a frenetic qualifying session at Barcelona's Circuit de Catalunya.
Valtteri Bottas lines up in third for Mercedes with Ferrari driver Kimi Raikkonen fourth on the grid.
Hamilton started on pole a year ago but he collided with his former Mercedes team-mate Nico Rosberg on the opening lap.
"It's going to be a tough race tomorrow that's for sure," Hamilton, 32, said. "It is all milliseconds between us.
"It's the third longest run down to turn one so it's going to be important to get a good start. I'm just going to do the best job I can."
Vettel, whose Ferrari team were forced to change his engine on Saturday morning, added: "The team did a phenomenal job.
"We had an issue this morning and we had to change the engine. Normally that's a three-hour job but they did it in under two hours. A big thank you to them.
"Kimi's crew helped out. It was quite funny. One side of the garage had one or two mechanics and the other side was completely crowded, like bees hovering around the car.
"I think we could have had pole today. Not the ideal end, but if I think about where we were this morning it was a really good recovery."