The Lions lost 3-1 to Angola and drew 2-2 with Tunisia, leaving them with an uphill battle to make the quarterfinals, and the experienced African campaigner was quick to accept responsibility for the dismal showing.
"I assume all responsibility for the poor showing. I'm not looking to blame anyone or look for an excuse,” he said. "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."
Assistant coach Lamine Ndiaye is expected to guide the team for their final game against South Africa on Thursday, where they need a win to have any chance of qualifying, providing Angola defeat Tunisia.
Kasperczak has coached Senegal since 2006 and has also previously been coach of Ivory Coast, Tunisia and Mali.