Marc Marquez led third practice for the final round of the MotoGP season at Valencia, beating Maverick Vinales by a little over a tenth of a second.
It took until the final minutes of the session before Jorge Lorenzo's Friday benchmark, a 1m30.463s, was challenged, although the Yamaha rider was the first man of the morning to dip beneath the 1m31s.
The Spaniard held sway at the top of the times with a 1m30.743s, set with 12 minutes to go, before Marquez recorded a 1m30.507s to go quickest of the session, if not overall, some five minutes later.
That was soon corrected as Marquez improved to a 1m30.258s on his next lap, the Repsol Honda rider beating Lorenzo's Friday time by 0.205s and taking over as the fastest man of the weekend so far.
Only Vinales could threaten Marquez in the closing stages, the Suzuki rider getting to within 0.103s of his compatriot after establishing himself as the second-quickest rider of the session.
Lorenzo was classed as third overall on the strength of his Friday effort, but third quickest in the session was Andrea Dovizioso's Ducati, 0.385s off the pace.
He was followed by Dani Pedrosa on the second factory Honda and Lorenzo, with Pol Espargaro bagging the final spot in the top six overall after getting within half a second of Marquez on the Tech 3 Yamaha.
Next up, both for the session and overall, were Aleix Espargaro (Suzuki) and Andrea Iannone (Ducati), while Valentino Rossi only just squeezed into the automatic Q2 spots with a late effort good enough for ninth, 0.594s off the pace.
Bradley Smith (Tech 3 Yamaha) sealed the final automatic place in the pole shootout, forcing fellow countrymen Cal Crutchlow (LCR Honda) and Scott Redding (Pramac Ducati) to go through Q1.
Jack Miller (Marc VDS Honda) was another rider to miss out on the top 10, after suffering a crash in the closing stages of the session.
Mika Kallio once more brought up the rear on the KTM, but this time was only 2.514s off the pace and only a couple of tenths behind Loris Baz on the Avintia Ducati in 21st.
Third practice results (session only):