Ghana reached the last 16 of the Africa Cup of Nations and knocked out Guinea-Bissau with a 2-0 win in Suez.
Jordan Ayew raced on to a through ball seconds after half-time to put them ahead, and Thomas Partey slotted home Abdul Baba’s cross to seal the victory.
That second goal ensured Ghana finished top of Group F, with Cameroon drawing 0-0 with Benin in Ismailia.
Guinea Bissau, who could have gone through with a victory, hit the woodwork three times.
Piqueti had a 25-yard shot tipped onto the bar by keeper Richard Ofori, Joseph Mendes hit the outside of the post from the edge of the box and Mamadu Cande’s corner struck the crossbar.
Swansea striker Ayew also hit the post twice, once in each half.
As a result of winning the group on goal difference, four-time champions Ghana, who had drawn their opening two games, will face the team who finish second in Group E – Mali, Tunisia, Angola or Mauritania – in Ismailia on Monday.
Cameroon will face Nigeria in Alexandria on Saturday.
Ghana aren’t clicking – Analysis
BBC World Service’s John Bennett at Suez Stadium
What a relief for Ghana. The first half must have been painful to watch for their fans. Literally nothing to get excited about and their future here in Egypt hanging in the balance.
But this Ghana side has a number of individuals who can get them out of trouble and one of them is Jordan Ayew. A frustrating player to watch at times because you always feel he is capable of delivering more but it was a really well-taken goal. He drove at the defender with the pace he inherited from his father Abedi Pele and then calmly curled it past the keeper.
It was also good to see Thomas Partey sliding in to get on the scoresheet. The Atletico Madrid midfielder has the potential to be one of the the star players of this tournament but he fell short of his own high standards in the first two games. Hopefully this can kick start his Cup of Nations.
So Ghana are into the last 16 but they still don’t seem to be clicking.
Can they deliver in the knockout stages? History tells you yes, Ghana always seems to make at least the semi-finals in recent years but Kwesi Appiah will know his squad need to find another level of performance.