Qualifying for the 2017 Formula 1 Mexican Grand Prix, the 18th round of the season, took place at the Autódromo Hermanos Rodríguez, with drivers contesting grid positions across Q1, Q2 and Q3.
Sebastian Vettel took pole with a 1:16.488, ahead of Max Verstappen on 1:16.574, a gap of 0.086 seconds. Lewis Hamilton was third. The full Q3 times for the top three are listed in the classification below.
The top ten in qualifying were Sebastian Vettel, Max Verstappen, Lewis Hamilton, Valtteri Bottas, Kimi Räikkönen, Esteban Ocon, Daniel Ricciardo, Nico Hülkenberg, Carlos Sainz and Sergio Pérez, in that order.
Felipe Massa, Lance Stroll, Brendon Hartley, Fernando Alonso and Stoffel Vandoorne occupied 11th to 15th respectively.
The remaining classified drivers were Marcus Ericsson in 16th, Pascal Wehrlein in 17th, Kevin Magnussen in 18th and Romain Grosjean in 19th.
| Pos. | No. | Driver | Team | Q1 | Q2 | Q3 | Laps |
|---|---|---|---|---|---|---|---|
| 1 | 5 | Sebastian Vettel | Ferrari | 1:17.665 | 1:16.870 | 1:16.488 | 20 |
| 2 | 33 | Max Verstappen | Red Bull | 1:17.630 | 1:16.524 | 1:16.574 | 19 |
| 3 | 44 | Lewis Hamilton | Mercedes | 1:17.518 | 1:17.035 | 1:16.934 | 21 |
| 4 | 77 | Valtteri Bottas | Mercedes | 1:17.578 | 1:17.161 | 1:16.958 | 17 |
| 5 | 7 | Kimi Räikkönen | Ferrari | 1:18.148 | 1:17.534 | 1:17.238 | 20 |
| 6 | 31 | Esteban Ocon | Force India | 1:18.336 | 1:17.827 | 1:17.437 | 19 |
| 7 | 3 | Daniel Ricciardo | Red Bull | 1:18.208 | 1:17.631 | 1:17.447 | 15 |
| 8 | 27 | Nico Hülkenberg | Renault | 1:18.322 | 1:17.792 | 1:17.466 | 17 |
| 9 | 55 | Carlos Sainz | Renault | 1:18.405 | 1:17.753 | 1:17.794 | 17 |
| 10 | 11 | Sergio Pérez | Force India | 1:18.020 | 1:17.868 | 1:17.807 | 19 |
| 11 | 19 | Felipe Massa | Williams | 1:18.570 | 1:18.099 | — | 10 |
| 12 | 18 | Lance Stroll | Williams | 1:18.902 | 1:19.159 | — | 11 |
| 13 | 28 | Brendon Hartley | Toro Rosso | 1:18.683 | DNF | — | 12 |
| 14 | 14 | Fernando Alonso | McLaren | 1:17.710 | DNS | — | 9 |
| 15 | 2 | Stoffel Vandoorne | McLaren | 1:18.578 | DNS | — | 13 |
| 16 | 9 | Marcus Ericsson | Sauber | 1:19.176 | — | — | 9 |
| 17 | 94 | Pascal Wehrlein | Sauber | 1:19.333 | — | — | 9 |
| 18 | 20 | Kevin Magnussen | Haas | 1:19.443 | — | — | 10 |
| 19 | 8 | Romain Grosjean | Haas | 1:19.473 | — | — | 11 |