The Englishman took the lead after pole-sitter Fernando Alonso's Renault made an early pit stop and dominated ahead of Ferrari's Kimi Raikkonen.
Red Bull's Mark Webber was third with Brawn's Jenson Button down in seventh.
The Australian replaces team-mate Sebastian Vettel, who retired, in second place in the world championship.
Vettel, who suffered a front suspension failure while running eighth on lap 27 of 70, slips to 23 points behind the Englishman with seven races remaining and a maximum of 70 points available.
Nico Rosberg was fourth for Williams ahead of Hamilton's team-mate Heikki Kovalainen, Toyota's Timo Glock, Button and the second Toyota of Jarno Trulli.
Red Bull, who dominated the last two races in Britain and Germany, put in a surprisingly uncompetitive performance but they were in much better shape than Button.
The Englishman qualified eighth, but was starting on a heavy fuel load and was optimistic he would have a strong race. Instead, he was unable to make any impression on the cars at the front.
For the first time this season, that meant McLaren, whose form here confirmed that the revised aerodynamics they introduced in Germany two weeks ago have transformed the car.
McLaren started the season with an uncompetitive car, struggling in most races to even get into the points. Hamilton, the reigning world champion, had not even managed to finish on the podium until winning this race.
But a new front wing, diffuser and engine cover introduced at the last race have improved the car's pace by about 0.8 seconds a lap
Hamilton qualified fourth, but used his Kers energy storage and power-boost system to challenge the leaders at the start.
Alonso got a good start from pole position and retained first place but Hamilton briefly got up into second place at the first corner before being repassed by Webber.
The Red Bull was expected to be the strongest car in the race but, while Alonso initially built a small gap, Webber found himself under pressure from Hamilton, who passed him on lap five and proceeded to pull away and close on the Renault.
Alonso, who had planned to do a three-stop strategy in contrast to the two stops of most of the rest of the field, pulled in for his pit stop on lap 11.
He was released a fraction too early before the right front wheel was fully attached and it parted company with the car part way around the lap and was forced to retire with the consequent damage and a fuel pump problem.
By the time all the front-runners had done their stops, Hamilton had a six-second lead over Raikkonen and he was able to control the race from the front.
Webber slipped behind Raikkonen after a problem with a front wheel at his pit stop and he was also passed by Toyota's Timo Glock as he rejoined.
Red Bull chose the opposite tyre strategy from the other front-running teams, running the harder of the two tyre options for the first two stints of the race before switching to the softer for the final stint.
Whatever the reason, the Red Bulls lacked their recent pace but Webber drove consistently well to the final podium position and make it a good race for him from a championship point of view.
By contrast, his team-mate Vettel had a disastrous weekend, making a poor start from second on the grid and running eighth in the early laps.
He was running behind Rosberg when he suffered a front suspension failure on lap 27 and was forced to retire.
Toyota, both of whose drivers qualified outside the top 10, used a long first stint to put themselves in contention for the minor points places.
Button finally showed some pace in the closing laps once the track was coated in rubber and he was back on the softer tyres after using the harder ones in the middle stint.
That lifted him to seventh from eighth, but he will still be concerned at a third consecutive uncompetitive race.
0 Responses to Hamilton seals first win of 2009 Hungary Grand Prix