Canada's Stephen Estaquio struck in stoppage time to eliminate South Africa from the World Cup. His late goal secured a 1-0 victory at a California stadium on Sunday.
The midfielder collected a deflected cross at the box and finished clinically into the bottom corner. It was Canada's first-ever appearance in a World Cup round of 16.
South Africa dominated possession throughout the encounter. But Canada proved sharper in attack and hungrier for chances.
Ronwen Williams kept Bafana Bafana competitive with five crucial saves. He denied Cyle Larin and Jonathan David in the opening 45 minutes.
After the interval, Williams continued his heroics. He pushed away Jacob Shaffelburg's attempt and parried Thapelo Maseko's curling effort with ease.
South Africa appeared content to take the match to extra time. Hugo Broos' side slowed the pace noticeably as regulation time wound down.
Estaquio punished their caution during added minutes. He pounced decisively when his moment came in the second minute beyond 90.
Canada's bench erupted onto the pitch in celebration. Supporters in the stands roared their approval as the co-hosts advanced.
This marked the first competitive meeting between both nations. It also represented a historic milestone for the North American side.
Canada haven't won a knockout fixture since 2002, making this achievement particularly significant. They became the first CONCACAF nation to reach a World Cup round of 16 since that year.
Morocco or the Netherlands awaits them next. The winner of that clash will provide Canada's quarter-final opponent.