Ferrari dominated qualifying for the 2018 Bahrain Formula One Grand Prix, with Sebastian Vettel taking pole position and Kimi Raikkonen finishing the final session in second place.

Mercedes' Valtteri Bottas and Lewis Hamilton took third and fourth place, respectively, but the latter will move back after receiving a five-place grid penalty. Daniel Ricciardo took fifth place for Red Bull, who lost Max Verstappen early to a crash.

Here's a look at the final times and results. Qualifying positions will change due to grid penalties:

Verstappen lost the back of the car on the apex, indicating the incident occurred due to driver error.

Ricciardo was off the pace in the remaining two sessions and finished in fifth place. He'll start on the second row after Hamilton's grid penalty is assessed.

Grosjean Misses Out on Q2, Toro Rosso Impress in Midfield Battle

Haas' pace in Australia and in practice had many anticipating another fine showing in Bahrain, but only Kevin Magnussen made it into Q2. Romain Grosjean posted the exact same time as McLaren's Fernando Alonso, but the Spaniard set his time first, doing just enough to advance ahead of the Frenchman.

Per BBC Sport's Andrew Benson, Grosjean only had himself to blame:

Andrew Benson @andrewbensonf1

Phew. Alonso survives the Q1 cut by the skin of his teeth - Grosjean sets the exact same time, but after him, messing up the last corner. Alonso 15th; Grosjean 16th. Pressure building on McLaren at what is effectively their home race https://t.co/qNNgIiPPfj

McLaren would not make it out of Q2, while Pierre Gasly had a great session for Toro Rosso, who did have a car in Q3.

Gasly would finish in sixth place, a superb result for the 22-year-old. Meanwhile, Magnussen recorded the seventh-best time in his Haas, beating out both Renault cars.

Ferrari Dominate, Hamilton on Softs

Mercedes were slower than Ferrari in the first session and changed things up in the second, sending Hamilton out on the slower soft compound. The world champion promptly put together arguably the best lap of the weekend so far, going just a tenth of a second slower than Vettel.

Fans wondered what he would bring in the final session:

Cem Bolukbasi @G2Bolukbasi

Can’t wait to see Hamilton do a 27 with the enhanced disco mode in Q3 #BahrainGP

He went out again on the supersofts before the end of the session but didn't push the car all the way. By not improving on his time, he didn't have to alter his race strategy.

Raikkonen initially had his team-mate beat in the shootout, as Vettel ran wide in the final corner, but he came back out to set the fastest time by some margin. After his win in Australia, Vettel once again is in a great position, as Ferrari appear to have a clear advantage over Mercedes in the warm conditions in Bahrain.