Senegal beat Morocco to win the Africa Cup of Nations for a second time - but only after the final was overshadowed when they temporarily refused to play after the hosts were awarded a stoppage-time penalty with the match goalless.

Referee Jean Jacques Ndala gave the spot-kick in the 98th minute after being advised by the video assistant referee (VAR) to consult the pitchside monitor and review defender El Hadji Malick Diouf's challenge on Brahim Diaz.

Ahead of the sensational scenes, head coach Pape Thiaw, still incensed by Ndala's decision moments earlier to disallow a Senegal goal, ushered his team off the field.

Former Liverpool striker Sadio Mane stayed on the pitch and tried to encourage his Senegal team-mates to finish the game.

Following a delay of around 17 minutes, the players did eventually return. Real Madrid forward Diaz, the tournament's top scorer with five goals, was trusted with the penalty, but his tame 'Panenka' effort was caught by Senegal keeper Edouard Mendy who barely had to move, and Ndala immediately blew his whistle for full-time.

Villarreal midfielder Pape Gueye then scored the winning goal in the fourth minute of extra time to seal a second triumph in five years for the Lions.

In his post-match news conference, Morocco coach Walid Regragui said Senegal's actions were shameful and do not honour Africa.

Fifa president Gianni Infantino strongly condemned the ugly scenes in a post.

After congratulating Senegal on their Afcon triumph and recognising Morocco as exceptional hosts, he described the scenes witnessed in the final as unacceptable and emphasized the need for respecting refereeing decisions.

Thiaw had his media briefing cancelled after a ruckus broke out in the press room, but later accepted he should not have ordered his team off the field, stating, after reflecting on it I made them come back [on the pitch] - you can react in the heat of the moment. We accept the errors of the referee.

Senegal's complaints about their treatment prior to the final, including a lack of security and inadequate hotel conditions, added to the tension of the match. Former Nigeria forward Efan Ekoku also criticized the team's decision to leave the pitch, calling it not a good look for African football.

Ultimately, despite the controversy surrounding the match, Senegal succeeded in clinching the trophy amidst a backdrop of chaos that clouded their achievement.