Colombia booked their place in the last 16 of the World Cup after a topsy-turvy final afternoon in Group H.
The South Americans reached the knockout stages after securing a narrow 1-0 win over Senegal.
The result means that Senegal crash out of the World Cup, with Japan taking the second qualifying position after receiving fewer yellow cards in the tournament .
It was a dramatic turnaround for Senegal, who were heading through as Group H winners.
With 70 minutes gone, Poland’s 1-0 lead over Japan in the group’s other game meant 2014 quarter-finalists Colombia were heading out, with Senegal going through as group winners.
But with just over 15 minutes of normal time left, Colombia defender Yerry Mina stole in at the near-post to head Juan Quintero’s corner past the Senegalese goalkeeper.
It was the second game in a row that the young defender had scored from a set-piece.
The goal turned Group H upside down, moving Colombia to the top of the group, leaving Senegal languishing in third on the fair-play rule.
Mane went close on the 76-minute but David Ospina was equal to the shot, turning his effort behind for a corner.
Colombia held firm to book their place in the next round where they will play either England or Belgium.