Togo stunned Algeria 2-0 on Saturday to send the former champions packing from the Africa Cup of Nations while at the same time boosting their own hopes of reaching the quarter-finals.
Tottenham striker Emmanuel Adebayor's first half goal and Dove Wome's in stoppage time sealed a memorable win which will have been greeted with jubilation in the Ivory Coast camp as it guaranteed their place in the last eight with a game to spare.
Togo's victory left the Ivorians, who moved up to six points after their 3-0 win over Tunisia earlier, assured of one of the two tickets from Group D.
Togo and Tunisia will scrap it out for the second berth on Wednesday, leaving pointless Algeria playing only for pride when they face the competition favourites.
Algeria, beaten 1-0 by Tunisia in their opening game, picked up the dubious honour of becoming the first team to be knocked out at this Nations Cup - a humiliating outcome for coach Vahid Halilhodzic and his band of talented yet inexperienced squad.
Broken goal delay
The two sides first meeting in the competition, watched by a near three-quarters-full crowd at the Royal Bafokeng stadium, proved a lively affair.
On 32 minutes, Adebayor, who only agreed to answer his country's call after a protracted will-he-won't-he-play saga, put the little west African nation into the lead.
The lanky striker ran on to Moustapha Salifou's header, slamming the ball low past the onrushing 'keeper Rais Mbolhi to open his 2013 account and put Togo bang in contention for the last eight.
Earlier, Togo 'keeper Kossi Agassa did well to hold on to Nottingham Forest midfielder Adlene Guedioura's bullet header off a corner taken by the lively Sofiane Feghouli, who was enjoying teasing Togo's defence down the right.
And only Agassa's chest denied Algeria's Islam Slimani a quick equaliser.
The second half was in its infancy when the north Africans had legitimate grounds for a penalty after Feghouli went down, tackled by Dakonam Djene, but Hamada Nampiandraza dismissed their apppeals.
The Malagasy official incensed the Desert Foxes further when turning down a second penalty shout soon after.
With their Nations Cup dream fast turning into a nightmare, Algeria upped the tempo, peppering Togo's goal, but to no avail.
A flurry of substitutions followed as Halilhodzic sought to bolster his attack, and Togo coach Didier Six his defence, which held firm, which is more than can be said for their goalposts.
In a farcical end to the night, officials took an eternity to carry out repairs after Guedioura clattered into the netting, dislodging the right upright, triggering 18 minutes of stoppage time.
That enabled Togo substitute Wome to add a second to extinguish any lingering hopes Algeria had of a fightback.