Senegal coach Henri Kasperczak has resigned with immediate effect following his team's poor performances at the Africa Cup of Nations in Ghana.
Pole Kasperczak is a veteran of coaching in Africa
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."
I'm not looking to blame anyone or look for an excuse
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 Angola defeating Tunisia to have any chance of progressing.
Technical director of the Senegalese football federation, Amata Fall, told BBC Sport that Kasperczak's resignation came out of the blue.
"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 Africa Cup of Nations semi-finals in 2006, the last eight in 2004 and were finalists in 2002.