Nico Rosberg returned to the top of the timesheets in final practice for the Spanish Grand Prix, as Sebastian Vettel again split the Mercedes.
Williams' Valtteri Bottas finished in fourth ahead of the second Ferrari of Kimi Raikkonen, who complained his engine had the wrong settings during his final run.
Daniel Ricciardo had a more productive day than yesterday and set the sixth fastest time in the Red Bull.
Felipe Massa was seventh for Williams, ahead of the Toro Rosso of Max Verstappen, Daniil Kvyat's Red Bull and Toro Rosso teammate Carlos Sainz.
While Ricciardo hit trouble yesterday, it was teammate's Kvyat's turn today, the Russian's car being worked on right from the start of the session.
Kvyat only took to the track with 20 minutes left on the clock, and with the fourth Renault engine fitted to his car.
Ricciardo was the early pace-setter as he tried to make up for the lack of running on Friday, the Australian getting busy right from the start of the session.
The Ferrari drivers moved to the top of the standings 15 minutes in, with Raikkonen leading Vettel by half a second.
But Ricciardo retook first place over 25 minutes into the session, as he became the first driver to put on the medium tyres. His lap, however, was just some two tenths of a second better than Raikkonen's.
Rosberg and Hamilton, both using the hard tyres, relegated Ricciardo to third place moments later, before the world champion had a big scare at Turn 3.
Hamilton ran wide at the exit of the corner and lost the rear of his Mercedes, but somehow managed to keep the car off the wall and returned to the pits with a set of tyres that he is unlikely to be able to use again.
The medium-tyre runs, which kicked off some 10 minutes from the end, saw Bottas take P1 before Vettel went half a second faster. Seconds later, however Rosberg went quicker, but by less than two tenths of a second.
Hamilton completed his first run on mediums just seconds later, but the Briton had to settle for third position.
|Pos||Driver||Car / Engine||Time||Gap||Laps|
|6||Daniel Ricciardo||Red Bull/Renault||1'27.048||1.027||19|
|8||Max Verstappen||Toro Rosso/Renault||1'27.132||1.111||18|
|9||Daniil Kvyat||Red Bull/Renault||1'27.313||1.292||7|
|10||Carlos Sainz||Toro Rosso/Renault||1'27.809||1.788||17|
|12||Nico Hülkenberg||Force India/Mercedes||1'28.082||2.061||13|
|18||Sergio Pérez||Force India/Mercedes||1'28.996||2.975||14|