Mick Fanning was competing in Jeffreys Bay, on the eastern Cape, when one of the sharks approached his surfboard.
The final of the J-Bay Open had only just started when Fanning was knocked off his surfboard and into the sea.
Fanning, the defending champion, escaped injury. The tournament was called off soon afterwards.