Brendon Hartley, Earl Bamber and Timo Bernhard led home a dominant World Endurance Championship one-two for Porsche in Mexico to extend their points lead.
Porsche was never threatened by rival Toyota over the course of the six-hour race, the two 919 Hybrids finishing a lap clear of the Japanese cars.
The margin in favour of the championship leaders over team-mates Nick Tandy, Andre Lotterer and Neel Jani was just seven seconds at the chequered flag.
The lead for the Hartley car had been as much as nearly half a minute after Lotterer had to take drive-through because a problem with the pitlane limiter led to a speeding offence, but Jani cut a 20s deficit to Bernard in half over the course of the final stint as the German driver backed off.
The drive-through and a change of fuel flow meter for the winning cars were the only hiccups encountered on Porsche on the way to a third consecutive victory.
Hartley said: "It was an awesome race by the Porsche team. I said after qualifying that we had a great car from the first laps and only needed to make small tweaks.
"The team made the lives of us drivers easy and we had a fairly smooth race."
The Toyota TS050 HYBRID was not a competitive proposition at Mexico City, the car lacking downforce at the high altitude track.
The #8 entry that finished third in the hands of Sebastien Buemi, Kamui Kobayashi went a lap down just three hours and 20 minutes into the race.
The Anglo-Swiss Rebellion Racing squad took its first LMP2 victory with the best of its pair of ORECA-Gibson 07s, driven by Bruno Senna, Nicolas Prost and Julien Canal.
Senna came through from third on the grid to build up a 30s lead in the early stages and Prost and then Canal maintained first position apart from a brief period in the penultimate hour.
Ben Hanley moved into the lead in the best of the Manor ORECAs and Senna had a quick spin as he strived to catch the Briton.
But Senna moved back into the lead when Hanley had to take tyres at the Manor car's final pitstop.
Hanley, who shared with Matt Rao and Jean-Eric Vergne, looked destined to take second after passing Nicolas Lapierre in the Signatech Alpine ORECA, only to spin in the closing stages.
That allowed the Signatech car, co-driven by Gustavo Menezes and Andre Negrao, to take second place, 25s seconds behind Senna.
Aston Martin claimed GTE Pro honours with Marco Sorensen and Nicki Thiim.
Their Vantage GTE battled with the Ferrari 488 GTE shared by Sam Bird and Davide Rigon for much of the race and was in the lead when it stopped under a full-course yellow virtual safety car with just over an hour to go.
Thiim trailed the Ferrari, which ended up making one pitstop fewer, to the flag by just eight tenths of a second, but the Italian car had already been awarded a 10s time penalty for speeding during the full course yellow.
That gave Sorensen and Thiim the victory by just over 9s when the results were adjusted.
No one else was in contention in GTE Pro, Frederic Makowiecki and Richard Lietz ending up a lap down in third in the best of the factory Porsche 911 RSRs.
The GTE Am class was won by the Dempsey-Proton Porsche 911 RSR shared by Christian Ried, Marvin Dienst and Matteo Cairoli, who finished a lap ahead of the Aston Martin Vantage GTE shared by Pedro Lamy, Mathias Lauda and Paul Dalla Lana.
|1||LMP1||T.Bernhard, E.Bamber, B.Hartley||Porsche LMP Team||Porsche||240||6h00m05.757s|
|2||LMP1||N.Jani, A.Lotterer, N.Tandy||Porsche LMP Team||Porsche||240||7.141s|
|3||LMP1||S.Buemi, A.Davidson, K.Nakajima||Toyota Gazoo Racing||Toyota||239||1 Lap|
|4||LMP1||M.Conway, K.Kobayashi, J.M.Lopez||Toyota Gazoo Racing||Toyota||239||1 Lap|
|5||LMP2||J.Canal, N.Prost, B.Senna||Vaillante Rebellion||ORECA/Gibson||219||21 Laps|
|6||LMP2||N.Lapierre, G.Menezes, A.Negrao||Signatech Alpine Matmut||Alpine/Gibson||219||21 Laps|
|7||LMP2||M.Rao, B.Hanley, J-E.Vergne||CEFC Manor TRS Racing||ORECA/Gibson||219||21 Laps|
|8||LMP2||R.Rusinov, P.Thiriet, A.Lynn||G-Drive Racing||ORECA/Gibson||219||21 Laps|
|9||LMP2||M.Beche, D.H.Hansson, N.Piquet Jr.||Vaillante Rebellion||ORECA/Gibson||218||22 Laps|
|10||LMP2||D.Cheng, A.Brundle, T.Gommendy||Jackie Chan DC Racing||ORECA/Gibson||218||22 Laps|
|11||LMP2||F.Perrodo, M.Vaxiviere, E.Collard||TDS Racing||ORECA/Gibson||218||22 Laps|
|12||LMP2||R.Gonzalez, S.Trummer, V.Petrov||CEFC Manor TRS Racing||ORECA/Gibson||217||23 Laps|
|13||LMP2||H-Pin Tung, O.Jarvis, T.Laurent||Jackie Chan DC Racing||ORECA/Gibson||211||29 Laps|
|14||GTE Pro||N.Thiim, M.Sorensen||Aston Martin Racing||Aston Martin||209||31 Laps|
|15||GTE Pro||D.Rigon, S.Bird||AF Corse||Ferrari||209||31 Laps|
|16||GTE Pro||R.Lietz, F.Makowiecki||Porsche GT Team||Porsche||208||32 Laps|
|17||GTE Pro||A.Priaulx, H.Tincknell||Ford Chip Ganassi Team UK||Ford||207||33 Laps|
|18||GTE Pro||M.Christensen, K.Estre||Porsche GT Team||Porsche||207||33 Laps|
|19||GTE Pro||J.Calado, A.P.Guidi||AF Corse||Ferrari||206||34 Laps|
|20||GTE Pro||S.Mucke, O.Pla||Ford Chip Ganassi Team UK||Ford||205||35 Laps|
|21||GTE Am||C.Ried, M.Cairoli, M.Dienst||Dempsey-Proton Racing||Porsche||204||36 Laps|
|22||GTE Am||P.D.Lana, P.Lamy, M.Lauda||Aston Martin Racing||Aston Martin||203||37 Laps|
|23||GTE Am||M.Wainwright, B.Barker, N.Foster||Gulf Racing||Porsche||203||37 Laps|
|24||GTE Am||T.Flohr, F.Castellacci, M.Molina||Spirit of Race||Ferrari||201||39 Laps|
|25||GTE Am||Mok W.S., K.Sawa, M.Griffin||Clearwater Racing||Ferrari||199||41 Laps|
|-||GTE Pro||D.Turner, J.Adam, D.Serra||Aston Martin Racing||Aston Martin||83||Not classified|
Leading drivers' standings