Four-time AFCON winners Ghana crashed out at the group stage after a shock 3-2 defeat to Comoros in which captain Andre Ayew was sent off.
Africa Cup of Nations debutants Comoros took the lead after four minutes through Ben Mohamed.
Skipper Andre Ayew was then shown a red card for a lunge on the keeper after VAR check.
Richmond Boakye and Alexander Djiku scored in the second half for Ghana to make it 2-2 but Ahmed Mogni claimed his second of the game with five minutes left to seal a famous win for Comoros.
Ghana’s shock defeat sees them finish bottom of Group C and exit AFCON at the group stage for the first time in 16 years.
Ghana finished with just a single point and it is the first time in their history that the Black Stars have failed to win at least one group stage match having made 22 past visits to the finals.
Morocco topped Group C with seven points, followed by Gabon on five, with both teams advancing from the group after their match finished 2-2.