You’ll be shocked once you see this footage of Australian surfer Mick Fanning being attacked by a shark.

The surf star was in South Africa competing at the J-Bay Open World Surf League when a huge shark appeared next to him.

Footage shows as the shark knocks Fanning off of his board and thrashes out at the triple world surf champion.

After escaping with the help of event officials, Fanning said he had punched and kicked out at the shark as it broke his leg rope.

“I literally just jumped away and it just kept coming at my board and I was kicking and swimming,” he said.

“I just saw fin – I didn’t see the teeth, I was waiting for some teeth to come at me as I was swimming. I punched it in the back.

“I was about to start paddling again and I had this instinct that someone was behind me.

“I saw the whole thing just thrashing around … I punched it a couple of times, but I felt like it was dragging me under water.

“Then all of a sudden my leg rope broke and I was swimming and screaming.

“I was swimming in and I had this thought what if it comes for another go at me? So I turned around, so I could at least see it, and before I knew it the boat was there, the jetskis were there. I just can’t believe it.”

Watch the video to see Fanning’s dramatic close call.