Austin - Lewis Hamilton secured pole position for Sunday's potential title-deciding United States Grand Prix by just 0.061 seconds on Saturday with another record-breaking performance for Mercedes in a tense qualifying session.
The 33-year-old Briton topped the times with a late flying lap that kept him narrowly ahead of his only remaining title rival Sebastian Vettel of Ferrari who, after taking a three-place penalty, will be fifth on the grid.
Hamilton needs to beat fellow-four-time champion Vettel by eight points to clinch his fifth drivers championship.
Kimi Raikkonen was third-fastest in the second Ferrari ahead of Valtteri Bottas in the second Mercedes with Daniel Ricciardo fifth for Red Bull.
Esteban Ocon was an impressive sixth for Force India ahead of Nico Hulkenberg of Renault, Romain Grosjean of Haas, Charles Leclerc of Sauber and Sergio Perez in the second Force India.
"That was close and I didn't know how close it was going to be when we got down to it," said Hamilton.
"I knew it was edgy between us on my last run, but my second lap was just that little bit getter and that enabled me to pull it out.
"I was adamant that I was going to do a better second lap so I am very happy with that."
It was Hamilton's third successive pole at the Circuit of the Americas and the 81st pole of his career.
"That was pretty close and it is always a bit of a shame when you miss out by such a little time," said Vettel. "But I was pretty happy with the laps I had.
"It was tricky to get it all together, but given the last few weeks that we have had, I am pretty happy that we are back in range."
Raikkonen said: "It's been a pretty positive day. We are close and I felt good with the car. We will try tomorrow and it will be interesting."
After a rain-swept Friday, Saturday brought dry, if cool, conditions with a track temperature of 21 degrees and the air at 19, a change that encouraged Ferrari to improve and dominate final practice in the morning.
When qualifying began, the two Ferrari men were swiftly setting the pace with Vettel on top early in Q1. The Mercedes men delayed their first runs, but were soon back in command, Hamilton going quickest in 1:34.176, ahead of Bottas.
The championship leader trimmed his time while, behind him, Max Verstappen's session was ended when his right rear suspension appeared to fail after he ran across the 'sausage' kerbs at Turn 17.
After a final flurry of laps, the five cars eliminated included both McLarens and both Williams along with Sauber's Marcus Ericsson, a once unthinkable outcome from qualifying.
Fernando Alonso did his utmost, but wound up 16th after being outpaced by Brendon Hartley's Toro Rosso in the final seconds.
Hamilton climbed out of his Mercedes to greet film star Matthew McConaughey with a hug before returning to the fray, a clear signal of his relaxed mood.
Using 'super-soft' tyres, Hamilton was unable to produce his best while the Ferraris led by Raikkonen went quickest again, leaving the Briton third ahead of Bottas.
Only Raikkonen ran on ultra-soft tyres, on which he will start the race while the rest will be on their more-durable 'supers, enabling greater tactical flexibility for the first part of the race.
Behind them, Carlos Sainz, Kevin Magnussen, Pierre Gasly, Brendon Hartley and Verstappen missed the cut to the top-ten shootout. The Dutchman's exit meant he was out-qualified by his team-mate Ricciardo for the first time in 12 outings.
On their first Q3 runs, Bottas, Hamilton and Vettel all broke the lap record, the Englishman quickest in 1:32.567, enough to put him 0.088 seconds clear of the resurgent, if penalised, Vettel.
On their final runs, Raikkonen improved again, to go top, but Hamilton exceeded that effort again with another faster lap to take pole for the third consecutive season.
Vettel was second 0.061 seconds adrift of the Briton and, with his penalty, will be fifth on the grid.
"Beautiful work," Mercedes told Hamilton, who will have Raikkonen alongside him at the start.
United States Grand Prix qualifying times on Saturday:
1. Lewis Hamilton (GBR/Mercedes) 1:32.237, 2. Sebastian Vettel (GER/Ferrari) 1:32.298, 3. Kimi Raikkonen (FIN/Ferrari) 1:32.307, 4. Valtteri Bottas (FIN/Mercedes) 1:32.616, 5. Daniel Ricciardo (AUS/Red Bull-TAG Heuer) 1:33.494, 6. Esteban Ocon (FRA/Force India-Mercedes) 1:34.145, 7. Nico Hulkenberg (GER/Renault) 1:34.215, 8. Romain Grosjean (FRA/Haas-Ferrari) 1:34.250, 9. Charles Leclerc (MON/Sauber-Ferrari) 1:34.420, 10. Sergio Perez (MEX/Force India-Mercedes) 1:34.594
1. Kimi Raikkonen (FIN/Ferrari) 1:32.884 (Q), 2. Sebastian Vettel (GER/Ferrari) 1:33.079 (Q), 3. Lewis Hamilton (GBR/Mercedes) 1:33.480 (Q), 4. Valtteri Bottas (FIN/Mercedes) 1:33.702 (Q), 5. Daniel Ricciardo (AUS/Red Bull-TAG Heuer) 1:34.185 (Q), 6. Charles Leclerc (MON/Sauber-Ferrari) 1:34.255 (Q), 7. Romain Grosjean (FRA/Haas-Ferrari) 1:34.419 (Q), 8. Esteban Ocon (FRA/Force India-Mercedes) 1:34.522 (Q), 9. Sergio Perez (MEX/Force India-Mercedes) 1:34.525 (Q), 10. Nico Hulkenberg (GER/Renault) 1:34.564 (Q)
11. Carlos Sainz Jr (ESP/Renault) 1:34.566, 12. Kevin Magnussen (DEN/Haas-Ferrari) 1:34.732, 13. Pierre Gasly (FRA/Toro Rosso-Honda) - no time, 14. Brendon Hartley (NZL/Toro Rosso-Honda) - no time, 15. Max Verstappen (NED/Red Bull-TAG Heuer) - no time
1. Lewis Hamilton (GBR/Mercedes) 1:34.130 (Q), 2. Valtteri Bottas (FIN/Mercedes) 1:34.518 (Q), 3. Sebastian Vettel (GER/Ferrari) 1:34.569 (Q), 4. Kimi Raikkonen (FIN/Ferrari) 1:34.703 (Q), 5. Daniel Ricciardo (AUS/Red Bull-TAG Heuer) 1:34.755 (Q), 6. Max Verstappen (NED/Red Bull-TAG Heuer) 1:34.766 (Q), 7. Pierre Gasly (FRA/Toro Rosso-Honda) 1:34.850 (Q), 8. Esteban Ocon (FRA/Force India-Mercedes) 1:34.876 (Q), 9. Carlos Sainz Jr (ESP/Renault) 1:34.891 (Q), 10. Romain Grosjean (FRA/Haas-Ferrari) 1:34.892 (Q), 11. Nico Hulkenberg (GER/Renault) 1:34.932 (Q), 12. Kevin Magnussen (DEN/Haas-Ferrari) 1:34.972 (Q), 13. Charles Leclerc (MON/Sauber-Ferrari) 1:35.069 (Q), 14. Sergio Perez (MEX/Force India-Mercedes) 1:35.193 (Q), 15. Brendon Hartley (NZL/Toro Rosso-Honda) 1:35.206 (Q)
16. Fernando Alonso (ESP/McLaren-Renault) 1:35.294, 17. Sergey Sirotkin (RUS/Williams-Mercedes) 1:35.362, 18. Lance Stroll (CAN/Williams-Mercedes) 1:35.480, 19. Marcus Ericsson (SWE/Sauber-Ferrari) 1:35.536, 20. Stoffel Vandoorne (BEL/McLaren-Renault) 1:35.735