At the next race, in Baku, Bottas again qualified third, behind Vettel and Hamilton. He remained in third for the first period of the race, but when both Hamilton and Vettel pitted for new tyres Bottas inherited the lead. He stayed out for 15 more laps until the Red Bulls collided and brought out the safety car. When the safety car came in, with less than a handful of laps to go, Vettel tried to pass into turn 1 and ran wide, and consequently fell to fifth place. With just two laps to go, Bottas ran over a piece of debris, sustained a right rear puncture and retired from the race, handing Hamilton the victory. This meant that Bottas fell to fourth in the championship, 30 points behind Hamilton in first.