Malawi, Nigeria and Zambia all finished level on six points after Wednesday's final round of Group C fixtures in Rabat. Zambia had the best overall goal difference — but under CAF's tiebreaking rules, it was never used.

Zambia's Barbra Banda celebrates after scoring against Malawi, but the Copper Queens were eliminated despite finishing Group C with the best overall goal difference.
RABAT, Morocco — Zambia's Women's Africa Cup of Nations campaign ended in the most frustrating of circumstances on Wednesday.
The Copper Queens beat Malawi 2-1 in their final Group C match and finished the group stage with six points — the same total as Malawi and defending champions Nigeria.
But despite boasting the best overall goal difference of the three teams, Zambia were eliminated after CAF's head-to-head tiebreaking rules were applied.
Malawi topped the group, Nigeria finished second and Zambia were left in third. Egypt finished bottom without a point.
Zambia's overall goal difference was +6, compared with +4 for Nigeria and +2 for Malawi. Ordinarily, that might appear enough to separate the teams.
But it never came into consideration.
Under CAF's regulations, when three or more teams finish level on points, the first tiebreaker is the results between the teams involved in the tie. In other words, Zambia's six goals against Egypt were irrelevant once the three-way tie was established.
How the final round unfolded
Nigeria knew they needed a win against Egypt to guarantee their progress and produced a convincing response, beating the Pharaohs 6-2 in Rabat.
Asisat Oshoala opened the scoring from the penalty spot in the 21st minute before being substituted with an injury before half-time. Nigeria continued to dominate after her departure, with Gift Monday doubling the advantage in first-half stoppage time.
Uchenna Kanu added a third shortly after the restart before Christy Ucheibe and Rasheedat Ajibade converted further penalties. Substitute Joy Omewa completed the scoring for Nigeria, while Nadine Ghazi scored twice for Egypt.
At the Al Madina Stadium, Zambia made the ideal start against Malawi.
Barbra Banda struck from distance inside the opening minute to put the Copper Queens ahead before Prisca Chilufya doubled their advantage before half-time, finishing Margaret Belemu's low cut-back.
Malawi responded through Tabitha Chawinga in the 72nd minute, setting up a tense finish.
Zambia then came agonisingly close to a third goal in stoppage time when Kabange Mupopo's close-range effort came back off the post with the goalkeeper beaten.
The Copper Queens held on for a 2-1 victory — but that result alone was not enough to send them through.
How the tiebreaker eliminated Zambia
With Malawi, Nigeria and Zambia all finishing on six points, CAF's regulations required a separate mini-league involving only matches played between those three teams.
Results against Egypt were removed from the equation.
The three relevant matches produced a perfect triangle.
Malawi beat Nigeria 3-2 in the opening round of fixtures. Nigeria then defeated Zambia 1-0, before Zambia responded by beating Malawi 2-1 in the final round.
As a result, all three teams had three points from their matches against one another.
The next tiebreaker was head-to-head goal difference.
Remarkably, that also failed to separate them.
Across those three matches, Malawi scored four goals and conceded four. Nigeria scored three and conceded three, while Zambia scored two and conceded two.
All three therefore had a head-to-head goal difference of zero.
That meant CAF's next criterion — goals scored in the matches between the tied teams — finally decided the order.
Malawi's four head-to-head goals put them top of the mini-league. Nigeria's three were enough for second place, while Zambia's two left them third.
And third place meant elimination.
The most painful moment for Zambia came late against Malawi.
With the Copper Queens leading 2-1, Mupopo found herself with a close-range opportunity in stoppage time. Her effort beat the goalkeeper but struck the post and bounced away.
Had that chance gone in, Zambia would have won 3-1.
That additional goal would have given Zambia a positive head-to-head goal difference against the other two teams and changed the outcome of the tiebreaker.
Instead, the ball stayed out, Zambia's head-to-head record remained level and the next criterion — goals scored — sent them home.
It was a matter of inches, but the consequences were enormous.
Why Zambia's +6 goal difference did not count
The source of much of Zambia's frustration is that they finished the group with a goal difference of +6, comfortably better than both Malawi and Nigeria.
Their opening victory over Egypt was particularly important to that figure.
But once three teams were tied on six points, CAF's regulations required the competition to first be settled using matches between those teams.
Because that mini-league ultimately separated the sides, the overall group goal difference was never reached as a tiebreaker.
In simple terms, Zambia's six goals against Egypt could not help them because Egypt was not part of the three-team tie.
It is not simply about how many goals a team scores. Under the applicable tiebreaking process, who those goals are scored against can matter more.
What happens next?
The Group C drama is settled, but the quarter-final picture is not yet complete.
Nigeria, the defending champions, have secured their place in the last eight, as have Malawi. Their eventual quarter-final opponents, however, depend on what happens in Group D.
Cameroon have already secured qualification from Group D, but they still have one match to play against Cape Verde. Ghana, meanwhile, face Mali in the other Group D fixture.
Those results could change the final order in the group and, consequently, determine whether Nigeria or Malawi face Cameroon or another qualifying side in the quarter-finals.
That makes the final Group D matches significant even though Cameroon have already booked their place in the knockout stage. The permutations will only become clear once Ghana, Mali and Cape Verde have completed their final group games.
For Zambia, there will be no such second chance.
The Copper Queens leave Morocco knowing that their overall goal difference was the best among the three teams that finished on six points in Group C. But because CAF's regulations prioritised results between the tied teams, their impressive scoring record against Egypt ultimately counted for nothing.
It is a brutal reminder of how tournament football can be decided by the finest margins.
A shot off the post. A single goal scored in the right game. A tiebreaker that most supporters may not have considered before kick-off.
For Zambia, those details have ended their WAFCON campaign.
For Nigeria and Malawi, they could soon determine the road to the semi-finals.