Lewis Hamilton timed his run to perfection in changing conditions to take a record-extending 80th pole position at the Japanese Grand Prix while Ferrari rival Sebastian Vettel qualified only ninth.

The Mercedes driver pumped in a one minute 27.760 second lap on the super-soft tyres while it was still only spitting with rain on Saturday.

Teammate Valtteri Bottas, who beat Hamilton to pole at the last race in Russia, guaranteed Mercedes a second successive front row lock out with a lap 0.299 seconds off the 33-year-old Briton's pace.

Ferrari meanwhile made the wrong tyre choice and were then caught out when the rain then came down more heavily, preventing anyone from improving on their times.

"It's so difficult when the pressure is on to make the right call but that's the big difference between us this year and that's why we're the best and the team deserve it," said Hamilton.

Vettel and Ferrari had failed to match Hamilton's pace all weekend, with the championship leader completing a clean sweep of practice.

The German, who trails fellow four times champion Hamilton by 50 points with five races remaining, needs a miracle to reignite his Formula One title hopes after his worst qualifying of the season.

Second and third in the first two parts of the session, Vettel was caught out by Ferrari's decision to fit their cars with intermediate tyres during the final phase instead of slicks.

But with the track still bone dry, the German and teammate Kimi Raikkonen had to come straight back in to fit the super-soft tyres.

Vettel ran wide on his first attempt on dry tyres, leaving him only one shot at a flying lap. The rain then came before he could set a competitive time.

"It's not the position we deserve to be in, we have better speed than ninth," said the unhappy German.

Max Verstappen qualified third for Red Bull, with Raikkonen fourth after managing to get a lap in on his first attempt. Romain Grosjean was fifth for Haas.

New Zealander Brendon Hartley and French team mate Pierre Gasly were sixth and seventh in a dream result for Honda-powered Toro Rosso at the Japanese engine manufacturer's home race.

Esteban Ocon was eighth for Force India with teammate Sergio Perez rounding out the top 10.

Hamilton has won five of the last six races and is already in a position where he does not need to win again this year to clinch the title.