Nick Tandy and Neel Jani claimed a final World Endurance Championship pole position for Porsche before it bows out of LMP1 after this weekend's Bahrain round.
The drivers of the #1 Porsche 919 Hybrid beat the best of the Toyotas to the top of the timesheets by nearly three tenths of a second.
Tandy had trailed Mike Conway in the #7 Toyota TS050 HYBRID by more than a second in the first runs after making a mistake on his lap.
Jani then posted the fastest time of the session with a 1m39.084s, which prompted Porsche to send Tandy back out for a second run.
The Briton improved to a 1m39.683s, which gave the #1 Porsche a 1m39.383s average.
Jose Maria Lopez was nearly seven tenths slower than Jani, which left the #8 Toyota in second with a 1m39.646s average.
Tandy said: "It was Neel's lap that made us think let's go for pole — when I saw 39.0, I thought, 'Wow'.
"What a great result for our last weekend."
Brendon Hartley and Timo Bernhard took third place with a 1m40.011s average, while Kazuki Nakajima and Anthony Davidson were fourth in the Toyota that has won the past two WEC rounds.
Andre Negrao and Gustavo Menezes took LMP2 pole for the Signatech Alpine squad.
Negrao was second fastest after the first runs aboard the French team's ORECA-Gibson 07 while Menezes lapped within three tenths of his team-mate's time.
That consistency gave them a 1m47.227s average and pole by four tenths.
Ho-Pin Tung struggled in the best of the Jackie Chan DC Racing ORECAs on the first runs, but Thomas Laurent was able to leapfrog the car up to second after setting the quickest lap of the second batch of drivers.
Their average of 1m47.612s put them just over a tenth up on the championship-leading Rebellion ORECA qualified by Bruno Senna and Julien Canal.
AF Corse Ferrari drivers Davide Rigon and Sam Bird claimed a fourth GTE Pro pole of the year.
Rigon posted the fastest time in class with a 1m56.021s in the first runs and then Bird was only a couple of hundredths slower as they set end up on a 1m59.033ss average aboard the #71 Ferrari 488 GTE.
That put them three tenths up on Aston Martin duo Darren Turner and Jonny Adam, who claimed second position with a 1m56.372s average.
Ford's Andy Priaulx and Harry Tincknell were the highest-placed pairing with a realistic chance of taking the title in third place.
Their average in the #67 Ganassi Ford GT ended up on a 1m56.463s average, which put them four tenths up on points leaders James Calado and Alessandro Pier Guidi in the #51 AF Ferrari.
Frederic Makowiecki and Richard Lietz, who lie second in the points, were only sixth fastest in their factory Porsche 911 RSR.
Pedro Lamy and Paul Dalla Lana took a seventh GTE Am class pole of the season in their Aston Martin Vantage GTE.
|1||LMP1||N.Jani, A.Lotterer, N.Tandy||Porsche LMP Team||Porsche||1m39.383s|
|2||LMP1||M.Conway, K.Kobayashi, J.M.Lopez||Toyota Gazoo Racing||Toyota||0.263s|
|3||LMP1||T.Bernhard, E.Bamber, B.Hartley||Porsche LMP Team||Porsche||0.628s|
|4||LMP1||S.Buemi, A.Davidson, K.Nakajima||Toyota Gazoo Racing||Toyota||1.391s|
|5||LMP2||N.Lapierre, G.Menezes, A.Negrao||Signatech Alpine Matmut||Alpine/Gibson||7.844s|
|6||LMP2||H-Pin Tung, O.Jarvis, T.Laurent||Jackie Chan DC Racing||ORECA/Gibson||8.229s|
|7||LMP2||J.Canal, N.Prost, B.Senna||Vaillante Rebellion||ORECA/Gibson||8.338s|
|8||LMP2||R.Rusinov, L.Roussel, L.Duval||G-Drive Racing||ORECA/Gibson||8.606s|
|9||LMP2||R.Gonzalez, S.Trummer, V.Petrov||CEFC Manor TRS Racing||ORECA/Gibson||8.793s|
|10||LMP2||M.Rao, B.Hanley, J-E.Vergne||CEFC Manor TRS Racing||ORECA/Gibson||8.991s|
|11||LMP2||F.Perrodo, M.Vaxiviere, E.Collard||TDS Racing||ORECA/Gibson||9.003s|
|12||LMP2||M.Beche, D.H.Hansson, N.Piquet Jr.||Vaillante Rebellion||ORECA/Gibson||9.004s|
|13||LMP2||D.Cheng, A.Brundle, T.Gommendy||Jackie Chan DC Racing||ORECA/Gibson||9.719s|
|14||GTE Pro||D.Rigon, S.Bird||AF Corse||Ferrari||16.650s|
|15||GTE Pro||D.Turner, J.Adam||Aston Martin Racing||Aston Martin||16.989s|
|16||GTE Pro||A.Priaulx, H.Tincknell||Ford Chip Ganassi Team UK||Ford||17.080s|
|17||GTE Pro||J.Calado, A.P.Guidi||AF Corse||Ferrari||17.498s|
|18||GTE Pro||N.Thiim, M.Sorensen||Aston Martin Racing||Aston Martin||17.636s|
|19||GTE Pro||R.Lietz, F.Makowiecki||Porsche GT Team||Porsche||18.133s|
|20||GTE Pro||M.Christensen, K.Estre||Porsche GT Team||Porsche||18.139s|
|21||GTE Am||P.D.Lana, P.Lamy, M.Lauda||Aston Martin Racing||Aston Martin||20.728s|
|22||GTE Am||Mok W.S., K.Sawa, M.Griffin||Clearwater Racing||Ferrari||20.902s|
|23||GTE Am||C.Ried, M.Cairoli, M.Dienst||Dempsey-Proton Racing||Porsche||21.012s|
|24||GTE Am||T.Flohr, F.Castellacci, M.Molina||Spirit of Race||Ferrari||21.969s|
|25||GTE Pro||S.Mucke, O.Pla||Ford Chip Ganassi Team UK||Ford||18.205s|
|26||GTE Am||M.Wainwright, B.Barker, N.Foster||Gulf Racing||Porsche||-|