Day 4 of the 2014 World Cup began with the opening encounter in Group E between Switzerland and Ecuador.
It was the South Americans who took the lead in the 22nd minute when the Swiss left Enner Valencia unmarked to head home.
The Swiss were back on level terms early in the second half as Admir Mehmedi scored within three minutes of coming on as a half-time sub.
Ottmar Hitzfeld's side then clinched all three points with a dramatic injury-time winner from Haris Seferovic.
Switzerland play France next on Friday.