Senegal has been reinstated as Africa Cup of Nations champion after the Court of Arbitration for Sport overturned a ruling that had awarded the title to Morocco. CAS issued its decision Tuesday, saying referee Jean-Jacques Ndala did not err in law when he allowed the final to resume after Senegal’s players walked off in protest.

Senegal beat host nation Morocco 1-0 after extra time in January, in a final marked by chaos on the field and violent clashes in the stands. The match was delayed for 15 minutes after Senegal’s players left the field at 0-0 to protest a penalty awarded to Morocco in the final minute of regulation time. Ndala, of Congo, eventually restarted play; Morocco’s Brahim Diaz had his penalty saved, and Senegal won in extra time.

In March, an appeals panel appointed by the Confederation of African Football (CAF) overturned the result and declared Morocco 3-0 winners by default. CAF appeal judges cited tournament regulations stating that a team that “refuses to play or leaves the ground before the regular end of the match without the authorisation of the referee, it shall be considered loser and shall be eliminated for good from the current competition.”

CAS rejected that interpretation, saying the rules applied only “when a team's conduct leads the referee to call off the game permanently.” The court also said Ndala “did not err in law” by allowing the match to continue. Football laws state that referee decisions are final.

CAS judges heard evidence at a one-day hearing last month. The court had promised a verdict by the end of November, alongside a full written ruling explaining the decision. CAS rulings can be challenged at Switzerland's supreme court, but only on limited procedural grounds.

Morocco's federation, the FRMF, said it intends to “pursue all available legal avenues” to appeal. It alleged there had been “communication” between a member of the CAS panel and the president of the Senegalese federation 48 hours before the decision was issued. The FRMF said such practices would “compromise the integrity and credibility of the arbitration procedure.” CAS has been contacted for comment on the allegation.

The FRMF also said the decision “did not take into account the approach recently adopted by both the International Football Association Board (IFAB) and FIFA, regarding players leaving the field of play without the referee's permission, and the resulting disciplinary responsibilities and penalties.”

Senegal's federation, the FSF, said it welcomed the ruling with “deep satisfaction.” In its statement, it said: “Far from consecrating the pre-eminence of one party over another, this decision affirms above all the triumph of sporting fairness and recalls a cardinal principle: the truth of a match is established exclusively on the field, under the protection of sports law.”