Lewis Hamilton admitted he was lucky to win an eventful Azerbaijan Grand Prix as he ended his six-race victory drought in spectacular fashion.

Hamilton departs Baku in charge of this season’s championship for the first time after taking advantage of Valtteri Bottas’s dramatic 220mph tyre blow-out, a jaw-dropping crash involving Red Bull teammates Max Verstappen and Daniel Ricciardo, and Sebastian Vettel’s overtaking gamble that backfired.

Vettel had appeared on course to secure a commanding, and well-deserved, victory which would have marked his third from the opening four rounds, but for the race to turn on its head when Ricciardo ran into the back of Verstappen with 11 laps to go.

Their collision, which provoked Red Bull team principal Christian Horner to demand that both of his millionaire drivers next week apologise to the team’s 800 staff at their Milton Keynes factory, paved the way for Bottas to lead by virtue of pitting for new tyres under the safety car.

Vettel was demoted to second and, in attempting a gung-ho move to retake the lead, fell off the track and ended down in fourth. Bottas’ chances of victory were then sensationally scuppered when he ran over a piece of debris and suffered a high-speed puncture just three laps from the end.

Suddenly Hamilton, who for most of this chaotic street fight in Baku appeared certain to lose further ground in the title race, now leads his Ferrari rival by four points.

“I was really, really fortunate,” an almost sheepish Hamilton said. “It was definitely a very untidy race from me, but I’ve got to take it because I didn’t give up and I kept pushing.

“I struggled with the tyres and I’ve definitely got to go away from here and work even harder to make sure that there is not a repeat performance.”

Indeed Hamilton ran off the road twice following uncharacteristic mistakes and spent parts of the race seemingly at odds with his team as he struggled to keep up with Vettel.

At one stage he even called for the event to be abandoned as a truck precariously dealt with Romain Grosjean’s stricken Haas after the Frenchman crashed out under the safety car.

Hamilton’s victory – his first since October’s United States Grand Prix, and certainly among the luckiest of his now 63 career wins – went some way to making up for his defeat at the opening round in Australia and ignite his title chances.

Hamilton should have won in Melbourne but a timing glitch by his Mercedes team saw him lose out to Vettel.

The Brit knows all about how unlucky F1 can be, and his thoughts were with his teammate after the Azerbaijan GP, as he knows that the Finn should have taken home the victory.

In fact, after the race, Hamilton showed his true class and went to see Bottas to console him, which is why he was late to the podium.

"Ultimately Valtteri deserved to win. He did an exceptional job, a faultless drive. Less so on my side.

"Straight away when I got out of the car and did the interviews I went to see Valtteri. I just wanted to congratulate him on how well he drove and that's why I was late to the podium.

"Valtteri was very, very unfortunate. A one-two would have been a great result for today.

"I wouldn't have got by him if he hadn't had that tyre blowout."