Senegal 0 Colombia 1
Senegal are out of the World Cup and, in an unprecedented stroke of ill fortune, they head home after receiving two more yellow cards than Japan.
Their players slumped to the ground at the end of a campaign that could hardly have been decided more cruelly.
Both they and Colombia had looked sure to go through from Group H after Poland took the lead in Volgograd and, in truth, that would probably have been the best outcome for this World Cup.
But Yerry Mina's header epitomised Colombia's determination not to sit on a draw and, while South American prospects receive another perk, Africa will now not have a single representative in the round of 16.
Colombia will now face England in last 16 on Tuesday.
Mina's goal from Juan Quintero's corner sent Colombia through as Senegal missed out with a poorer disciplinary record.
"It's the law of football. We didn't qualify because we've earned more yellow cards, but I'm proud of my lads, they've worked hard for this tournament and I think we've showed we can have a bright future," Senegal coach Aliou Cisse said.
"The rules have been established by Fifa and we have to respect it, even though we would have liked to have been eliminated another way."