Africa Cup of Nations (AFCON) debutants Madagascar overcame the Super Eagles of Nigeria on Sunday with a 2-0 win to finish top of Group B.
Lalaina Nomenjanahary gave Madagascar a shock 12th-minute lead in Alexandria against a much-changed Super Eagles side.
Madagascar sealed the victory in the 53rd minute when Charles Andriamatsinoro a heavily deflected free-kick beat Ezenwa.
Defeat for Nigeria likely sets up a clash with either holder Cameroon or four-time winners Ghana in the next round, while Madagascar will take on a team that finishes third from either Group A, C or D.
Having already qualified after back-to-back 1-0 victories, Nigeria coach Gernot Rohr made five changes to the side that overcame Guinea in their second game with Samuel Kalu handed his first start of the tournament following last week’s collapse in training due to severe hydration.