Kenya secured top spot in Pool D with a dramatic 15-14 win over South Africa in Adelaide.
Yellow cards for Robert Ebersohn and Frankie Horne saw South Africa go into the break 10-7 down. The defending champions survived a nervy couple of minutes at the start of the second half with just five men, but once parity was restored Ryno Benjamin put South Africa back in front.
But with just over a minute remaining the Kenyans came back and scored through Victor Oduor to claim only their second ever victory over South Africa in Sevens history.
The defeat means Paul Treu’s men will now face New Zealand in the Cup quarter-finals.
In their earlier game South Africa thumped Japan 43-0. Lionel Mapoe scored a hat-trick for the Bok Sevens, while Kyle Brown, Mpho Mbiyozo and Mzwandile Stick (2) also touched down to add insult to injury for the Japanese.
For all the results and fixtures click here.