Ghana was eliminated from the Africa Cup of Nations group stage after debutants Comoros defeated the four-time winners.
El Fardou Ben Nabouhane put the islanders up early on, and Ghana was reduced to ten men after Andre Ayew was sent off.
Ahmed Mogni extended the lead in the second half, before the Black Stars rallied back to tie it 2-2.
Mogni, on the other hand, scored his second goal in the 85th minute to send Ghana out of the group stage for the first time since 2006.
The result in Group C will go down in history as one of the biggest upsets in Nations Cup history, as Comoros scored for the first time in the finals and then went on to win for the first time.
Despite losing their first two games in Cameroon, the 132nd-ranked Coelacanths now have a chance to go to the knockout stages as one of four best-ranked third-placed teams.
The tiny island nation, which has a population of just under a million people and is better known for its political coups than its football, had only won its first Nations Cup or World Cup qualification at the 20th attempt in 2016.
Comoros have already overcome one of the continent’s giants, with a roster strengthened by members of the diaspora, many of whom play in the lower levels in France.