Morocco's Abdelhamid Sabiri and Zakaria Abdoukhlal rocked the Kasbah with the goals that secured a first World Cup win for 24 years.
The two subs scuppered tournament big-guns Belgium in a dramatic late finale that threatened to take the roof off the Al Thumama Stadium.
Sabiri, the Sampdoria midfielder who once had his contract cancelled by Huddersfield, sent his countrymen wild with a 73rd-minute free-kick that made a fool out of Thibaut Courtois.