Egypt were beaten 4-2 by Angola in their final Group B match at the Futsal Africa Cup of Nations in Rabat, Morocco.
Egypt led 2-1 at half-time, but Angola turned the match around after the break by scoring three goals to complete the comeback.
The result left Egypt second in Group B on six points, behind Angola, who finished top with nine points.
Egypt had previously recorded wins over Tanzania, beating them 8-0, and Mozambique, whom they defeated 4-0.
The outcome means Egypt will face hosts Morocco, the winners of Group A, in the semi-final.
Angola will play Algeria in the other semi-final.
