The Teranga Lions of Senegal Captain Kalidou Koulibaly put his team into the last 16 of the World Cup by volleying home the winner in a 2-1 victory over Ecuador on Tuesday.
Koulibaly scored less than three minutes after Moises Caicedo had evened the score at 1-1.
In a must-win match for the African champions, Senegal took the lead after a first-half penalty by Ismaila Sarr. Caicedo scored his goal in the 67th.
At 1-1, Ecuador would have advanced from Group A and Senegal would have been eliminated.
The Netherlands beat Qatar 2-0 in the other match to win the group. Senegal finished second while Ecuador and Qatar were eliminated.
Senegal last advanced from the group stage at the 2002 World Cup, when the team reached the quarterfinals in their tournament debut.
The Senegalese National team, Teranga Lions are only the third African team to reach the World Cup knockout phase in at least two different editions, after Nigeria (1994, 1998 and 2014) and Ghana (2006 and 2010)