Sergio Perez fought from the back of the field to claim a maiden Formula One win as a bungled pit stop from Mercedes cost George Russell the chance to top the podium at a breathless Sakhir Grand Prix.
Racing Point driver Perez – without a seat for the 2021 season – span out on the opening lap after making contact with Charles Leclerc, who ended up in the barriers alongside Max Verstappen.
The Mexican worked his way back through the pack and led after Mercedes put the wrong tyres on race leader Russell – who was standing in for Lewis Hamilton after the seven-time champion's positive coronavirus test – when they double-stacked their cars in the pits behind the safety car.
Russell had to return to the pits for a legal set of tyres and after fighting back from fifth to second, he sustained a puncture, ending his hopes of closing in on Perez in the final laps.
With Russell having to make do with first F1 points in ninth, Perez set a record for the longest wait for a maiden win by securing it in his 190th start.
Esteban Ocon followed him over in second for his first podium, with Lance Stroll giving Racing Point a second driver in the top three for the first time.
Russell took the lead from Valtteri Bottas into turn one but soon had the safety car in front of him after Perez swept across to the inside of turn four and made contact with Leclerc.
Verstappen's attempt to avoid the spinning Racing Point saw him skid into the barrier alongside Leclerc, while Perez was able to limp back to the pits and continue racing from the back.
The safety car went in after lap six and Russell quickly pulled out of DRS range of Bottas, who was two seconds behind after a lock-up into turn one on lap 14.
Russell pitted first and Bottas followed four laps later and, despite a brief worry about having "no power", the Briton's lead increased to eight seconds from the undercut.
Perez benefited from Carlos Sainz and Daniel Ricciardo arriving too late to pit under a virtual safety car and he quickly got past team-mate Lance Stroll and Esteban Ocon to move into P3.
Mercedes' race unravelled when they pitted behind the safety car – deployed after debutant Jack Aitken lost his front wing – sending Russell out on a mixed set of tyres, while Bottas had to return with the same ones once the mistake was spotted.
Perez consequently led the field and after a slow puncture forced Russell to pit from second, he was able to comfortably hold on and get his first taste of success in F1.