Red Bull's Max Verstappen celebrated a long-overdue first Formula One pole position at the Hungarian Grand Prix, with championship leader Lewis Hamilton qualifying  third for Mercedes.

Instead of Hamilton taking a record-equalling seventh pole in Hungary, and 88th of his career, the Dutch 21-year-old wrote his name in the record books as the sport's 100th driver to secure a pole.

"This feels good, this feels really good," he shouted over the team radio after a roar had gone up from his massed supporters.

Finland's Valtteri Bottas, 41 points behind Hamilton after 11 of 21 races, qualified alongside Verstappen on the front row of the grid.

After stepping out of the car, Verstappen said: "It's incredible. This one was still missing. The car felt good all weekend and you know it's always going to be hard in qualifying but we managed to do it.

"For me, today was an important one, a very nice one and a great one for the team."

The youngster has already savoured seven career victories, including two in the last three races, and the pole came at his 93rd attempt.

Already the only Dutch driver ever to win a championship grand prix, he became the first to take a pole -- which was also a first for a Honda-powered car since Australia 2006 with Britain's now-retired Jenson Button.

"It's an incredible feeling to get your first pole so I'm really happy for him," said Hamilton, who won in Hungary last year from pole.

"I'm always up for a fight. It's a long way down to Turn One so it should be interesting. It's not the easiest place to overtake here but I hope we can give them a run for their money."

Charles Leclerc was the quicker of the two Ferrari drivers in fourth place, despite smashing backwards into the tyre wall during the first phase and damaging his car's rear wing, forcing a quick change.

"I've been very lucky to go again and I have to thank the team for what they did," said the 21-year-old Monegasque, who crashed out of last weekend's German Grand Prix while challenging for the lead.

"It was a completely unnecessary mistake at that moment in quali, and that's two mistakes in two Grand Prix races."

Team mate Sebastian Vettel will line up fifth, with Red Bull's Pierre Gasly sixth and McLaren's Lando Norris the best of the rest in seventh.