Cristiano Ronaldo scored the winner for Portugal as they beat Ghana 2-1 in Brasilia in Group G on Thursday but both sides still crashed out of the World Cup.
Ronaldo missed three chances with only goalkeeper Fatawu Dauda to beat that would have been enough to put his side into the last 16.
An own goal from John Boye gave Portugal the lead before Asamoah Gyan equalised for the Black Stars. Ronaldo scored the second half winner but he will be ruing the misses which left Portugal stuck behind second place United States on goal difference. Germany won the group after beating he United States 1-0.