
Senegal coach Henri Kasperczak has resigned with immediate effect following his team's poor showing at the Africa Cup of Nations in Ghana.
The Teranga Lions lost 3-1 to Angola on Sunday and now have only a slim chance of qualifying for the last eight.
Senegal assistant coach Lamine Ndiaye will take charge of their final game, against South Africa on Thursday.
Kasperczak, in charge since May 2006, said: "I assume all responsibility for the poor showing."
Speaking on Monday, Kasperczak added: "I tendered my resignation immediately after the match against Angola to the president of the Senegalese federation and it has been accepted. I have informed the players.
"I'm not looking to blame anyone or look for an excuse, but maybe with me out of sight things might turn out well because we still have a chance."
Senegal have one point from their two matches and must defeat South Africa and rely on Tunisia defeating Angola to have any chance of progressing.
Technical director of the Senegalese football association told BBC Sport he did not expect Kasperczak to resign.
"We are surprised he has taken this decision because there was a good bond between him and the players," said Fall.
Kasperczak, who played for Poland at the World Cup in 1974, has previously been in charge of Ivory Coast, Tunisia and Mali.
Senegal reached the semi-finals in 2006, the last eight in 2004 and were finalists in 2002.