(CNN) -- Red Bull's Sebastian Vettel has won the European Grand Prix in Valencia, Spain.
The German led from start to finish to record his second victory of the season and his first since winning at the Malaysia Grand Prix in April.
The McLaren's of Lewis Hamilton and Jenson Button finished second and third respectively.
The win, the seventh of the German's career, keeps the 22-year-old firmly in the hunt for the world championship title.
"It's about time I won from pole. We're back on track," said Vettel, AFP reported.
"It wasn't easy and we didn't expect to be that strong but we were able to come through it in the end. It's good to get a lot of points, good for the championship, so I'm pleased for today," he said, AFP reported.
Lewis Hamilton retains his lead at the top of the drivers' standings with 127 points, six points ahead of 2009 champion and team-mate Jenson Button who is on 121 points.
Vettel now lies third on 115 points, ahead of his Red Bull team-mate Mark Webber who drops to fourth.
The Australian made a spectacular exit from the race on the tenth lap with his car flipping over after he shunted the back of Kovalainen's Lotus.
The upended car righted itself before plunging into a tire wall at high speed. Amazingly, the Australian walked away from the crash, seemingly unscathed.
Hamilton started the race brilliantly, moving up into second place past Webber on the first corner, and in the opening laps pushed Vettel. But the German was able to extend his lead after the Briton was given a drive through penalty for overtaking the safety car.
Rubens Barrichello finished in fourth place for Williams. Renault's Robert Kubica finished in fifth, while Force India's Adrian Sutil crossed the line in sixth.