Daniel Ricciardo held off Red Bull team-mate Max Verstappen to take victory in a breathtaking Malaysia GP and end Mercedes' ten-race winning streak as Lewis Hamilton suffered a costly retirement.
Ricciardo snatched the lead on Lap 40 as pole-sitter Hamilton, who held a comfortable advantage, saw his race come to a fiery and devastating end as he ground to a halt at Turn 1 following an engine failure.
The Aussie had superbly defended from Verstappen a few laps earlier, holding his own as they sensationally went side-by-side through the high-speed Turn 5, and that proved crucial as he kept the young Dutchman at bay to snatch a first victory since the 2014 Belgian Grand Prix.
Nico Rosberg, sent tumbling down the order after being tagged by Sebastian Vettel into Turn 1, survived a controversial ten-second penalty for an aggressive pass on Kimi Raikkonen into Turn 3 to take the final podium spot and open up a commanding 23-point lead in the championship with five races remaining.
Raikkonen took fourth place, while Valtteri Bottas picked up ten points for Williams in fifth and Sergio Perez, who ran third early on after a strong start, finished sixth.
Fernando Alonso, who had started 21st, superbly fought back to take seventh, with Nico Hulkenberg finishing eighth to ensure Force India remain fourth in the constructors' standings ahead of Williams.
Jenson Button's 300th Grand Prix ended with a solid, if unspectacular, ninth place, while Jolyon Palmer ended his long wait for a maiden F1 point in P10.
Carlos Sainz leaves Sepang empty-handed after winding up in P11, with Marcus Ericsson a solid 12th and Felipe Massa 13th after stalling at the beginning of the formation lap and suffering a slow puncture in the early stages.
Daniil Kvyat was 14th ahead of the two Manors, with Pascal Wehrlein heading Esteban Ocon, who was twice penalised for speeding in the pitlane.
Felipe Nasr was forced to retire in the closing stages, while Romain Grosjean's afternoon came to an early end with suspected brake issues, Esteban Gutierrez suffered a dramatic front-wing failure and Kevin Magnussen took an early bath after sustaining substantial damage in a Turn 1 incident.
They joined a dejected Hamilton and Vettel, who damaged his front suspension in the aforementioned clash with Rosberg, on the sidelines.