AFCON 2015: Ghana 3 Equatorial Guinea 0
Equatorial Guinea, ranked 118th in the world by FIFA, were named as late replacement hosts for Morocco and upset the odds to reach the knockout stages.
They did so again in a controversial quarter-final triumph over Tunisia, but four-time champions Ghana proved too tough an obstacle as emotions reached an unsavoury boiling point in the stands.
Ghana had to do without star striker Asamoah Gyan due to a hip injury but his replacement Jordan Ayew gave them a 42nd-minute lead from the penalty spot after Equatorial Guinea goalkeeper Felipe Ovono fouled Kwesi Appiah.
Mubarak Wakaso doubled the advantage in the closing moment of the first half before Avram Grant's team had to be shielded by police from objects thrown from the crowd as they left the field.
The home players pleaded for calm in the stands before the resumption but they were unable to negotiate a way back into the match as Andre Ayew sealed victory and a final spot against Ivory Coast with his third goal of the tournament.
Chaos descended as the game entered its closing stages.
A delay of more than half an hour came as a further hail of objects were thrown and a large number of supporters fled the stands, gathered behind the advertising hoardings, as a proud night for Equatorial Guinea ended in unfortunate ignominy.
The game had started with Equatorial Guinea looking to impress, semi-final hero Javier Balboa going close before the attacker's free-kick presented captain Emilio Nsue with a chance which he could not convert.
The hosts were offered further encouragement when Wakaso was muscled off the ball by Iban – only for referee Eric Arnaud Otogo-Castane to halt his charge towards goal by awarding a free-kick to spare the Ghana midfielder.
Ovono thwarted a number of first-half attacks by charging quickly from his line but the goalkeeper's ambition got the better of him as he clattered into Appiah on the end of Christian Atsu's measured throughball.
Otogo-Castane had no hesitation in pointing to the spot and Jordan Ayew slotted home before Ghana doubled the misery for a boisterous home crowd in first-half stoppage time.
Andre Ayew sent Atsu charging clear on the break down the left channel and he cut the ball back for Wakaso to calmly take a touch and drill a low finish - unfortunately Ghana's exit from the field would not be so straightforward.
Ghana should have given themselves further breathing space 10 minutes into the second half but Andre Ayew was unable to connect from close range when John Boye knocked a free-kick back across goal.
Appiah then sprung the offside trap but Ovono was, seemingly inevitably, out quickly to save.
The familiar sight of Ovono on the charge was in evidence again in the 75th minute, although Appiah retrieved the second ball on this occasion and fed Andre Ayew to slot beyond a keeper scrambling for his ground.
The goal signalled the end of a memorable run by Esteban Becker's team but sparked further anger on the field, which saw the game severely delayed.
Ghana's players remained calm throughout and were able to celebrate after playing out a token three minutes upon the game's resumption to seal their final place.
Watch every match of the Africa Cup of Nations LIVE on British Eurosport HD or sign up to Eurosport Player and follow the action on mobile, tablet and other devices: www.eurosportplayer.com