The Comoros side were on Cloud nine after eliminating four times AFCON Champions, Ghana in final day of Group C fixture on Tuesday.
The Black stars are officially out of the competition after a game full of emotion and drama.
The Comoros have now three points (3), moving from fourth position to third, just behind Gabon, second with five points and will have to wait for the results of the other groups to advance as one of the best third countries.
The result left the four-time champions, who earlier lost 1-0 to Morocco and drew 1-1 with Gabon, bottom on the table with one point, while Comoros picked up the third spot and are in a position to qualify to the Round of 16.
Morocco and Gabon finished in first and second positions, respectively, following their 2-2 draw in the other group game on Tuesday.
Despite their lack of experience in front of Ghana Comoros did not give enough time to breathe to their opponents. A quick counter-attacking move eventually led to the early goal from captain El-Fardou Mohamed (4′).
Ghana’s nightmare was just beginning! A serious foul by captain Andre Ayew on Comoros goalkeeper Boina Ben earned him a red card at the 23rd minute.
Ayew was trying to take advantage of a rebound and ended up injuring the goalkeeper, who had to be replaced in the 24th minute by his colleague Ahamada Nadhoim.
The Comoros’ second goal came in the 61st minute through Ahmed Mogni, who broke through four defenders and slotted the ball into the back of the net.
Dramatic moments followed at the Roumdé Adjia Stadium. Ghana were levelled through Richmond Yiadom (63′) and defender Alaxander Djiku (76′).
The goals revived the game and the Comoros took the lead again with the third goal scored by Ahmed Mogni (86′).