A pair of inspired substitutions from coach Ottmar Hitzfeld earned Switzerland a 2-1 comeback FIFA World Cup win over Ecuador in Group E.
The in-form Enner Valencia scored his fifth goal in the past five international appearances to give the South American team a 22nd-minute lead but Admir Mehmedi levelled three minutes after coming on as a half-time substitute.
Both those goals came about as a result of poor set-piece marking, but Switzerland took the points in dramatic fashion courtesy of a clinical counter-attack deep into injury time.
Mehmedi’s fellow replacement Haris Seferovic, who last netted for his club Real Sociedad in November, was on hand to convert Ricardo Rodriguez's low cross to spark wild celebrations from the Swiss.
Ecuador made high-tempo start, launching attack after attack during the opening minutes but the Switzerland defence stood firm.
Their lone striker, Josip Drmic, had a sight of goal in the 12th minute, only for Jorge Guagua to make a timely challenge as the Europeans found their feet.
Granit Xhaka and Xherdan Shaqiri tried their luck from outside the box - the latter's strike grasped at the second attempt by goalkeeper Alexander Dominguez, who then spilt a 19th-minute shot from full-back Rodriguez behind.
And so it was slightly against the run of play when Valencia headed home Walter Ayovi's pinpoint delivery as Switzerland's customary set-piece solidity deserted them.
Valencia has played a more forward role in the Ecuador team since the death of Christian Benitez last July and, as part of their celebrations, the Ecuador players pointed to the sky, apparently in tribute to their late team-mate.
Dominguez showed more assured handling when Valon Behrami headed Shaqiri's corner goalwards and the Ecuador goalkeeper then got a vital touch to send Gokhan Inler's low 36th-minute drive around the post.
Ecuador looked to extend their lead two minutes before the break but Johan Djourou made last-ditch block to deny Jefferson Montero after Felipe Caicedo had played the winger in.
Mehmedi was introduced at the resumption and Hitzfeld's decision to bolster his attack paid almost instant dividends.
Just as Switzerland's marking was found wanting for the game's opening goal, Ecuador allowed the Freiburg forward far too much room to head Rodriguez's corner into the net.
Both teams refused to take a backwards step following the equaliser, Valencia remaining heavily involved as he weaved inside to ripple to top of the netting with an hour played.
Ecuador's pace on the counter-attack became an increasing threat and Diego Benaglio made a fine save after his defenders backed off the rampaging Montero, while Drmic scrambled the ball home from an offside position at the other end with 20 minutes to go.
Shaqiri drilled into the side netting with team-mates well placed inside him, while Valencia almost capitalised on a rush of blood from Benaglio, but the goalkeeper was let off the hook.
Ecuador sub Michael Arroyo erred in delaying his shot in stoppage time, allowing Switzerland to break and after Behrami had made a superb tackle to set them away, Seferovic made no such mistake when he fired home the winner with virtually the last kick.
Switzerland must tackle France in Salvador on Friday, while Honduras are next up for Ecuador later on the same day in Curitiba.
|Victory star Rojas set to return to Europe|
|Beckham happy for Madrid coach Zidane|
|Toluca 0 Atletico Madrid 0: LaLiga giants held to dour draw|
|Tottenham 2 Roma 3: Kolarov makes debut in thriller|
|Premier League spending unsustainable – Levy|
|Mourinho: I miss Rooney a lot|
|Instagram post was Pique´s ´gut feeling´ over Neymar future|
|Emery unmoved when quizzed on PSG´s pursuit of Neymar|
|Real Madrid´s attack doesn´t need Mbappe to wreak havoc, claims Casemiro|
|Balotelli fitter than last season, warns Dante|
|Mata and Herrera provide Manchester United injury boost|
|Orlando capture Dwyer in record swoop|
|Bardsley bolsters Burnley backline options|
|Ibrahimovic still a leader at Old Trafford – Pogba|
|Thiago Maia joins Brazilian influx at Lille|
|WATCH: Neymar´s aim defeats Messi and Suarez|
|Hart can help West Ham reach top eight – Hislop|
|Ajax´s Nouri out of intensive care and breathing unaided|
|Mourinho wants a midfielder and winger at Man Utd|
|Mourinho slams UEFA over Bailly ban|
|Payet was a flawed individual – Sullivan|
|Conte pleased with Morata cameo|
|Kaka uncertain of Orlando future as he targets MLS play-offs|
|Cassano should be applauded, says Prandelli|
|Sanches seeking to swap Munich for Milan|
|Brown loaned to Brighton after signing Chelsea contract|
|VAR would have ruled out ´Hand of God´ goal, Maradona admits|
|Bordeaux abandon Wellington Silva transfer|
|Kaka backs Bonucci to help Milan rediscover glory days|
|Chelsea 2 Bayern Munich 3: Muller at the double as Bayern bounce back|
|Injured Michu confirms retirement|
|Neymar will make right decision amid PSG links - Kaka|
|Wagner backs Liverpool to win the league|
|Monaco deny world-record €180m Real Madrid deal for Mbappe – report|
|Higuain: I need to score more in Europe|
|Real Madrid ´would be alright´ but Dolberg in no rush to leave Ajax|
|Mane, Ings back in full Liverpool training|
|Mahrez would do great things at Roma – Gonalons|
|Real Madrid want a top-class French striker, Lyon president claims|
|Bernat has surgery on ankle ligament tear|
|Higuain wants Dybala at Juventus but ´can´t point a gun at his head´|
|I want more trophies – Ronaldo confirms Real Madrid stay|
|Aulas: PSG signing Neymar for record fee is risky|
|Klopp unfazed by Mourinho, Man United|
|WATCH: Mourinho crashes Lingard interview|
|Lukaku aiming to emulate Ronaldo at Man United|
|Man City arrivals have brought trophy hunger back - Kompany|
|Better than Suarez & Van Persie: Opta stat proves West Ham have a bargain in Hernandez|
|Wolf signs on with promoted Stuttgart|
|Striker Hernandez completes £16m West Ham switch|
|Lukaku reveals how Pogba talked him into Man Utd move|
|Morata: It was my destiny to play for Conte|
|´All good!´ - Keita and Demme make up after Leipzig spat|
|Bernardeschi joins Juventus for €40m|
|Wolfsburg out of race for AC Milan´s Suso|
|Cassano delivers third U-turn in baffling week to confirm retirement|
|Bailly to miss Man Utd´s Super Cup clash with Real Madrid|
|Riedewald reunited with De Boer at Crystal Palace|
|Neymar ´would be welcome´ at Real Madrid, jokes Casemiro|
|James & Ancelotti back Morata for Chelsea success|
|I don´t think Pique was joking – Alba confident Neymar will stay|
|Maldini hails Bonucci capture and backs Milan for Champions League challenge|
|RB Leipzig´s Demme escapes serious injury after reported Keita bust-up|
|Inter 1 Lyon 0: United target Perisic impresses as Jovetic nets winner|
|Leaving so soon? Cassano the latest in football´s long list of short stays|
|You´ll miss me! – Mbappe bids farewell to new Manchester City signing Mendy|
|I always wanted Manchester City, says new signing Mendy|
|Cassano quits Verona as saga takes another twist|
|Manchester City spree continues with Mendy arrival|
|Dortmund rule out selling Sokratis to Juventus|
|Milan coach Montella hopes Scudetto can become ´a concrete goal´|
|Martial is a defender´s nightmare, says Lingard|
|Pedro suffered facial fractures, Conte confirms|
|Bale gunning for more Real Madrid success as United speculation ends|
|Ancelotti rules out Vidal sale, Sanches departure ´a possibility´|
|Van Dijk left out of Southampton´s pre-season trip|
|Bernardeschi attends Juventus medical ahead of €40m switch|
|Bayern president labels big spending ´a sign of weakness´ amid Neymar rumours|
|I sent 10 messages a day - Montella pestered Milan chiefs to attempt Bonucci coup|
|Defoe dreaming of World Cup call-up|
|MLS Review: Timbers, Sounders claim important conference wins|
|Mexico 0 Jamaica 1: Late Lawrence stunner sinks defending champions|
|Vardy: I have no regrets after turning down Arsenal|
|Conte believes Fabregas could be key for Chelsea|
|Blanc: Difficult for Verratti to leave PSG|
|Mourinho praises Martial but wants consistency from United star|
|Morata backed for Chelsea success by Spanish duo|
|Zidane: I haven´t asked for a forward amid Mbappe links|
|Henry: Messi´s development not yet over|
|De Boer compares Zaha to Neymar|
|Neymar could take PSG to next level – Blanc|
|Real Madrid 1 Manchester United 1 (1-2 pens): De Gea proves his worth to Mourinho|
|Belotti scores in Torino win, Terry lifts bizarre Cup of Traditions|
|PSG cannot get Sanchez so they go for Neymar - Wenger|
|De Rossi: Juventus have no weaknesses|