Enner Valencia scored both goals as Ecuador left Honduras on the verge of a World Cup exit.
Carlo Costly latched onto a long ball and lashed in a low 20-yard shot to put Honduras ahead on 31 minutes.
Ecuador equalised soon after when a deflected cross fell for Valencia to slot home. He then nodded in at the far post to give his side the lead.
Honduras pressed for an equaliser but a goal eluded them and they have now lost both group games.
Ecuador meet France in their final group game, knowing they need to match Switzerland’s result against Honduras to reach the last 16.
Knowing defeat against Honduras would knock them out, Ecuador should have taken an early lead against Honduras.
A long ball from centre-back Jorge Guagua released Valencia, but he side-footed over the crossbar.
Honduras defender Victor Bernardez then headed wide when unmarked before his long clearance set Costly free to net emphatically.
The goal was the country’s first at a World Cup since 1982, but the lead did not last long, Valencia slotting from close range after a Juan Paredes shot was deflected into his path.
Honduras thought they had restored their lead when Jerry Bengtson bundled home after a Costly header came off the post, but the referee disallowed the goal for handball.
Valencia then nodded in at the far post following a Walter Ayovi free-kick to settle the game with his seventh goal in six internationals.