Cristiano Ronaldo's goal saw Portugal beat Ghana 2-1 in Brasilia, but it proved academic as both sides crashed out of the FIFA World Cup.
Coming into the final Group G clash, both sides knew only victory would give them a chance of progressing to the second round, and even then they were dependent on the game between Germany and the United States, with a draw in Recife good enough to see those two teams through regardless of events in the capital.
Portugal, needing a five-goal swing to overtake the USA in second place, went in front after 30 minutes when Ghana defender John Boye's wild clearance from Miguel Veloso's cross diverted the ball over goalkeeper Fatawu Dauda and into the net.
Ghana responded in the second half, Asamoah Gyan's header making him the highest ever scorer for an African nation at World Cup finals, surpassing the mark of five set by Cameroon's Roger Milla.
With Germany beating the Americans 1-0 on Thursday, a 2-1 victory for Kwesi Appiah's men would have seem them through and Abdul Majeed Waris was guilty of a glaring miss shortly after Gyan's equaliser, nodding wide from close-range with no defenders around him.
They were left to rue that miss 10 minutes from time, Ronaldo firing home from 12 yards after a defensive mix-up between Jonathan Mensah and Dauda, the keeper flapping hopelessly at a high ball.
Portugal made four changes from the side that drew 2-2 with the United States, while Ghana showed two alterations, Waris and Emmanuel Agyemang-Badu coming in for Kevin-Prince Boateng and Sulley Muntari, suspended by the Ghanaian Football Association for alleged disciplinary breaches.
Ronaldo had the first effort of note in the fifth minute as his audacious lob from wide on the right caught out Dauda but struck the crossbar and rebounded to safety.
The Portugal captain threatened again seven minutes later, testing Dauda with a trademark dipping free-kick from 30 yards.
Ronaldo was at the forefront of all of Portugal's attacking play and ought to have put his side ahead in the 19th minute.
Joao Pereira delivered a pinpoint ball from the right and the Real Madrid man, unmarked six yards from goal, directed his header straight at Dauda, who parried away.
A minute later Ghana almost hit the front as Gyan was denied by the legs of Beto after the Portugal defence failed to deal with an aerial ball.
Portugal continued to make most of the running and got their noses in front on the half-hour mark, Boye slicing Veloso's cross from the left into the net via the bar and right-hand post.
Ronaldo brought another save out of Dauda two minutes later, while Gyan continued to pose a danger, heading wide after meeting Christian Atsu's cross.
After a quiet start to the second half Ghana equalised with 57 minutes gone, Gyan nodding home at the far post following a superb cross from Kwadwo Asamoah with the outside of his left foot.
Waris wasted a glorious chance to put Ghana in front four minutes later, somehow heading wide from six yards after being picked out by Gyan.
Ronaldo - relatively quiet throughout the tournament - ultimately had the final say as he lashed in a left-footed strike after Dauda feebly palmed Mensah's wayward header into his path, but it mattered little as both sides' hopes were dashed.
Aussies Abroad: Two-year Danish Superliga record falls as Mabil's Midtjylland lose to Brondby
Awer Mabil’s hopes of clinching the Danish Superliga title with FC Midtjylland suffered a blow after a 2-1 loss to Brondby earlier this morning. Marc Dal Hende opened the scoring early for Midtjylland, but a swift equaliser from Simon Hedlund and a deflected winner from Jens M
Former Caltex Socceroos striker announces retirement
Former Caltex Socceroos forward and Adelaide United legend Bruce Djite has announced his retirement from football. Djite, 32, was most recently playing for Indonesian club PSM Makassar before returning to Australia last year. “I’ve had a few opportunities come up that inter
Aussies Abroad: Milligan and Rogic locked in Scotland, big wins for Amini and Giannou
Tom Rogic and Mark Milligan locked horns as the Scottish Premier League's runaway leaders, Celtic, were held by Hibernian in a stalemate at Easter Road. The Caltex Socceroo pair shared the pitch for around ten minutes as steely midfielder Milligan bustled for 70 minutes, while
Aussies Abroad: Ryan clean sheet puts Brighton in reach of safety
It may be an Easter long-weekend but that does not mean there is any less action for our overseas Caltex Socceroos. A clean sheet from Mat Ryan helped secure a vital point for Brighton & Hove Albion in the race for English Premier League survival, as they held Wolverhampton Wa