He had been unable to force his way past long-time race leader Max Verstappen on track, when the team called him in for an unexpected second pit stop at the end of Lap 48.
That put Hamilton over 20 seconds behind Verstappen but crucially on a much faster set of fresh medium tyres, and he spent the remaining laps of the race hunting down his rival. He finally blasted past him with five laps to spare.
"James, sorry I doubted your strategy," Hamilton said over the team radio on his victory lap, speaking with race engineer Peter Bonnington and team strategist James Vowles.
Hungarian Grand Prix
Hamilton late surge secures Hungary victory
04/08/2019 AT 12:48
"That was definitely a tall order but I'm grateful we did it."
Bonnington responded: "Wow, just wow mate. What a drive!
"Only you could make that happen. Awesome work today."

Lewis Hamilton gewinnt in Ungarn 2019

Image credit: Getty Images

Vowles added: "That was an incredible drive.
"Really, really impressive You earned that ... Well done, we knew you had it in you!"
"I definitely wasn't thinking genius!"
Hamilton subsequently revealed to Sky Sports F1 exactly why he was sceptical about the change of plan at the time.
"Was I thinking 'worth a try' at the time?" Hamilton said.
"Naturally I have a different viewpoint from the car.
"I couldn't compute how that would work if I was really honest [because] I thought I could make the hards go to the end so I knew he would be able to do the same, so I thought: 'Jeez, this is going to be difficult!'
"After that I just had to put any doubt out of my mind, and if it didn't work out then it didn't work out. If it hadn't worked out it would have been a little frustrating, because I felt like when I was behind on the hards I thought that I would have multiple opportunities to get by."

Red Bull's Dutch driver Max Verstappen (R) competes next to Mercedes' British driver Lewis Hamilton during the Formula One Hungarian Grand Prix at the Hungaroring circuit in Mogyorod near Budapest, Hungary, on August 4, 2019. (Photo by FERENC ISZA / AFP)

Image credit: Getty Images

Hamilton said he had put his all into claiming his seventh victory at the venue, in an effort to overcome a disappointing performance last weekend in Germany when he was laid low by illness.
"I was really, really so determined to win this race today and recover from the last race," Hamilton added.
"It feels great. You wouldn't believe it because it feels like a first - I don't know how, I've been doing this a long time, but it really feels like one of the first wins.
"I feel tired, which is how it should be.
"But I feel really grateful for the day and the team who continue to push me to the limits and take a chance on me.
"We've been together for seven years, but every win feels brand new.

Lewis Hamilton célèbre sa victoire lors du Grand Prix de Hongrie 2019

Image credit: Getty Images

"The rapport that we have is second to none, and the working relationship we have - the balance, the honesty between everyone - there's no BS between any of the people working together. Everyone's so diligent with how they work.
"After a bad race like the last one there's tears, there's full openness. You don't bottle stuff up and carry it with you. You're able to let it out and move forward and communicate and not feel embarrassed, and let it go.
"That's so, so key to success - and then just staying united and continue working at what we do."
Hungarian Grand Prix
Hamilton first, Bottas last in Hungarian GP practice
02/08/2019 AT 11:39
Hungarian Grand Prix
Kvyat seeking more success after 'surreal' weekend
31/07/2019 AT 16:57