A surfer mauled to death by a great white shark spent his final moments warning his friends about the beast and trying to group them together for safety.

Mercury 'Merc' Psillakis, 57, was bitten in half by a five-metre shark at Dee Why, on Sydney's Northern Beaches, just after 10am on Saturday.

Mr Psillakis' close friend Toby Martin, a former pro surfer, rushed to the beach shortly after the attack alongside Mr Psillakis' wife, Maria.

'He was at the back of the pack still trying to get everyone together when the shark just lined him up,' he told the Daily Telegraph.

'It came straight from behind and breached and dropped straight on him. It's the worst-case scenario.