Nico Rosberg went fastest in practice two in Bahrain and Lewis Hamilton second to keep just ahead of the Ferrari's on a track that may be more favourable to the Italian team come the race on Sunday.
Rosberg registered a 1:34.647 on a track lit up by floodlights as the sky darkened in Bahrain. Hamilton trailed by just 0.115 followed by the Ferrari's of Kimi Raikkonen and Sebastian Vettel and Valteri Bottas from Williams who were just over 0.5 seconds slower than the German Mercedes driver.
Making up the rest of the field were Daniel Ricciardo, Pastor Maldonado, Felipe Nasr, Daniil Kvyat, Felipe Massa, Marcus Ericsson, Fernando Alonso, Romain Grosjean, Carlos Saintz Jr, Nico Hulkenberg, Max Verstappen, Sergio Perez, Will Stevens, Jensen Button and Roberto Merhi.
Many of the 20 driver field used practice two to test their long-run strategy, with Hamilton and Rosberg on the medium tyre and close rivals Vettel and Raikkonen opting for the soft tyre.
Button started practice one with his car in bits in the McLaren Honda garage and it was a similar story in practice two, with McLaren calling him back in after an anomaly with the engine data. Button did manage to get out eventually in practice two but could only do a 1:39.209 - over four seconds slower than Rosberg and splitting the Manors in 18th and 20th.
Alonso on the other hand had a much better time in practice two than in previous race weekends, getting a time to put him all the way up in 12th place.
Practice two was red flagged with 10-minutes remaining when Vettel came out of the pits and was clipped by Sergio Perez, destroying his front wing and sending debris all over turn one.
He was quoted by BBC Sport as saying: "I had a failure - a brake failure - and then Perez took my wing off. Unbelivable."
Both Hamilton and Raikkonen are under investigation for "failing to leave the pit lane correctly" after the red flag period, when they undertook cars exiting onto the track.