Mercedes driver Lewis Hamilton will start from pole position for the fourth time this season after setting the fastest time at the end of qualifying for the Hungarian Grand Prix on Saturday.
The British driver sounded stunned when his team announced over the race radio that he had beaten three-time defending Formula One champion Sebastian Vettel.
"I'm really surprised," said Hamilton, who is looking for his first race win of the season. "We've got a steep hill to climb tomorrow with these tires and these conditions."
Hamilton clocked 1 minute, 19.388 seconds, just ahead of Vettel's best lap of 1:19.426.
"There wasn't much missing. Lewis did a really good job," said Vettel, who has never won in Hungary. "It's stupid to sit here and say `We should have done this and we should have done that.' I could be on pole, but still I think it puts us in a great place for tomorrow."
Red Bull and Mercedes have combined to take all 10 poles this season -- with Vettel getting all three for Red Bull.
Nico Rosberg has won two races, while Hamilton is still looking to finish higher than third in a Mercedes that has great speed but lacks durability over a whole race.
"It's been the same for a long time. It's not a surprise for us," Hamilton said. "It's great to have the pole position but it doesn't mean anything, it's in the race where we score points."
Hamilton, the 2008 F1 champion, will hope that the Hungaroring helps him end that barren run. He won here last year for his third victory on the track.
"I've been fortunate to have a good car for quite a few years with McLaren," Hamilton said.
Lotus driver Romain Grosjean, who was fastest in the final practice session, qualified third for his best grid position of the season.
"I quite like this circuit, but it doesn't mean much unfortunately. The last lap was a pretty good lap," said Grosjean, who was third in Hungary last year. "I'm happy to be back in the top three in qualifying. It was a good lap and we're happy with that."
The track temperature on the Hungaroring circuit reached 50 degrees Celsius (122 Fahrenheit), and similarly stifling temperatures are expected for Sunday's race with tire degradation expected to play a key part in the result.
Red Bull's Mark Webber did not make a run in Q3 because of a problem with KERS, which can boost acceleration, and will start from 10th.
Vettel moved to the top in Q2 with Lotus' Kimi Raikkonen and Hamilton close behind. But a late run saw both Mercedes take the top two places.
In a frantic last minute, Sergio Perez, Mark Webber and Felipe Massa made it through to Q3. Perez had crashed right at the end of the third practice run and McLaren engineers had to work quickly to get his car ready for qualifying.
Meanwhile, former champion Jenson Button missed the cut for Q3, finishing in 13th.
Paul di Resta had a bad run in Q1. The British driver finished 18th.