Lewis Hamilton

Lewis Hamilton won the Hungarian Grand Prix for the second year in a row from the pole position. (Janos Marjai / EPA / July 28, 2013)

BUDAPEST, Hungary -- Lewis Hamilton won the Hungarian Grand Prix from the pole position on Sunday for his first victory of a frustrating season and a record-tying fourth triumph on the Hungaroring circuit.

Kimi Raikkonen was second after holding off a strong late challenge from Sebastian Vettel, who was third ahead of Red Bull teammate Mark Webber.

Hamilton's first year with Mercedes has been tricky, and he came into the race with low expectations of victory despite securing his fourth pole this season and his third in a row.

“This is probably one of the most important Grand Prix wins of my career,” Hamilton said after equaling Michael Schumacher's record of four victories here. “I hope there are many more to come.”

Hamilton managed his tires wisely to get his 22nd GP win and the first since the United States GP last November. Before Hungary, he had been third three times.

“We were on the back foot when we came in, I wasn't even expecting to be on pole,” said Hamilton, who also won from pole in Hungary last year. “Four wins, that's incredible. I love it here.”

Hamilton remains fourth overall but is likely too far behind to mount a serious title challenge as the season takes its mid-season summer break.

Leader Vettel has 172 points, 38 clear of Raikkonen and 39 ahead of Ferrari driver Fernando Alonso. Hamilton has 124, some 48 points adrift of Vettel.

“I hope today is the first step in (catching up) but we have a lot of races coming up,” Hamilton said. “I remember the first time I won, it was an exceptional feeling. Today it was a really calming feeling when I came over the line.”

The next race is the Belgian GP on Aug. 25.

After he won, Hamilton kissed his Mercedes and then hugged team boss Ross Brawn. When he raised the winner's trophy, he looked emotional as he pointed to members of his team to share the moment with them.

“The guys have just been phenomenal all year,” Hamilton said. “I feel like I really earned my keep today.”

During the race, the British driver was in no mood for compromise, however, barking back at an engineer over the race radio, “Hey man, I'm trying to drive here. I'm happy with the way the car is,” when he received some late advice.

Teammate Nico Rosberg had to abandon right near the end with flames billowing from the back of his car. He was unhurt.

Vettel has four wins overall, having won at the German GP three weeks ago.

“The start was difficult and when Lewis pulled in we thought we could do it on the softs,” said Vettel, who has never won in Hungary. “I damaged my front wing which did not help. We wanted a little bit more today.”

He tried desperately to get past Raikkonen and they almost collided on the penultimate lap as the Finn blocked his move.

“I had no doubt that I could keep him out,” Raikkonen said.

But Vettel thought Raikkonen should have given him more room.