Chaos mars Senegal win(图1)Senegal's Sadio Mane lifts the trophy with teammates as they celebrate winning the Africa Cup of Nations title at Prince Moulay Abdellah Stadium, Rabat, Morocco, on Sunday. [Photo/Agencies]

Senegal has won the Africa Cup of Nations in dramatic fashion in Rabat, Morocco.

Pape Gueye scored in extra time for the Teranga Lions to beat host Morocco 1-0 in a chaotic final on Sunday which at one point saw fans trying to storm the field and Senegal's players walking off the pitch to protest a penalty decision deep into second-half stoppage time.

It appeared unclear if the game could continue as fans battled with stewards.

"We all saw what happened at the end of the match but we took the decision to come back onto the pitch and give everything," Gueye said.

Play resumed after a stoppage of 14 minutes, only for Senegal's Edouard Mendy to easily save Brahim Diaz's attempt at a Panenka penalty when he lobbed the ball straight into the goalkeeper's arms with the last kick of normal time.

Gueye then scored the winning goal in the fourth minute of extra time when he swept the ball into the top right corner with his left boot.

The 69,500-capacity Prince Moulay Abdellah Stadium emptied quickly after the final whistle. Few were left to see the Senegalese players lift the trophy.

It's Senegal's second Africa Cup win. The Teranga Lions won the 2021 edition after a penalty shootout against Egypt.

There was chaos before extra time after Morocco was awarded a controversial stoppage-time penalty just after Senegal had what seemed a good goal ruled out at the other end.

Senegal's goal in the second minute of stoppage time was ruled out for a foul by Abdoulaye Seck, but TV replays showed little contact on Morocco defender Achraf Hakimi, who fell before Seck headed the ball off the post. Moussa Niakhate headed in the rebound.

Then Morocco claimed a penalty for a pull by El Hadji Malick Diouf on Brahim, and it was awarded after Congolese referee Jean-Jacques Ndala checked replays.

The decision led to fights between some of the Moroccan substitutes and their opposing players with Morocco coach Walid Regragui also involved, possibly in a bid to calm the situation.

Anger spilled over among the organized group of Senegalese fans, with many jumping down among the photographers and trying to storm the field from behind one of the goals. At least one threw a chair onto the field. They were mostly held back by a long line of police.

There were also fights in the media box — possibly involving Moroccan and Senegalese fans masquerading as journalists tried to get accreditation — while tempers flared.

"The image we gave of African football was rather shameful," Regragui said.

Senegal coach Pape Thiaw led his team off the field while Moroccan fans celebrated the penalty decision and whistled the ongoing fighting on the field.

The players returned some 14 minutes later and Brahim — Morocco's star and the tournament's top scorer with five goals — missed the chance to end Morocco's 50-year wait for the trophy.

"Football sometimes is cruel and today we lost," Regragui said. "We know in a final you need to take the few chances that come your way. That penalty in the last seconds could have won us the title."

Brahim was whistled by the remaining Morocco fans when he went to collect his runners-up medal.

Gueye scored Senegal's first goal from open play — rather than from penalties — in a final. This was Senegal's fourth appearance in an Africa Cup final.

"Sadio (Mane) told us to come back on and we re-mobilized," Gueye said."Edouard then made the save, we stayed focused, got the goal and won the game."

Before the game, the Senegalese Football Federation decried a lack of "fair play" from the Moroccan hosts before the final, citing an alleged lack of security, problems with the team hotel, training facilities, and the ability to get tickets for its supporters.

Senegal was without suspended captain Kalidou Koulibaly and midfielder Habib Diarra, and was dealt a further blow before kickoff when Krepin Diatta and Ousseynou Niang were both injured in the warmup. Diatta had been due to start at right back.

Chaos mars Senegal win(图2)Morocco's Youssef En-Nesyri, Abde Ezzalzouli and Nayef Aguerd look dejected after losing the final on Sunday. [Photo/Agencies]