McLaren's Lewis Hamilton celebrated his first win of the Formula One season at the Hungarian Grand Prix overnight
Hamilton's win, however, was overshadowed by an accident which left Ferrari driver Felipe Massa hospitalised with life-threatening injuries suffered in the qualifying round.
The 28-year-old hit a tyre wall after a spring that fell off Rubens Barrichello's car seconds earlier, flew up and hit his helmet.
He is now in a "stable, satisfactory" condition following emergency surgery.
Hamilton broke his drought of 11 races without a podium finish. He won the race with a margin of 11.5 seconds ahead of Ferrari's Kimi Raikkonen and Red Bull's Mark Webber who came third.
"It's an incredible feeling to be back here after what feels such a long time away, and such a struggle with me and my team," Hamilton said after his 10th career win. "We didn't expect to win this season. Undoubtedly we caught up this weekend."
Webber moved to second in the overall title race, after teammate Sebastian Vettel retired with an engine problem.
Pole sitter Fernando Alonso of Renault retired early after one of his front tires came off and overall leader Jenson Button finished seventh. The Brawn GP driver now leads Webber by 18.5 points.
It was Button's worst result this season after winning six of the first seven races, and moved him to 70 points in the overall standings. Webber has 51.5 points, while Vettel's retirement after 29 laps left him on 47 points.
Brawn GP's Rubens Barrichello finished 10th to stay on 44 points as Red Bull also trimmed Brawn GP's lead in the constructors' series to 15.5 points with seven races left.
Jaime Alguersuari, who became the youngest driver to start an F1 race at 19 years, 126 days, finished ahead of last-place Toro Rosso teammate Sebastien Buemi in 15th on his debut.