An own goal by John Boye and a late strike by Cristiano Ronaldo gave Portugal a 2-1 victory over incident-hit Ghana on Thursday, but it was not enough to make the second round as both sides exited the World Cup.
The United States got a dream start to their World Cup campaign when Clint Dempsey scored the fifth fastest goal in tournament history but they needed an 86th minute winner from John Brooks to secure a dramatic 2-1 win over Ghana on Monday.
Ghana and Algeria ratified their top ranking as both advanced to the quarters.
Rioting spectators forced a 34-minute stoppage in the African Nations Cup semis.