Suddenly the sea creature stops and pulls the

A resourceful octopus was filmed by a diver scurrying along the seabed while carrying two halves of a coconut.

In the clip, which was posted online by a French diver, the octopus holds the halves of its makeshift home with its tentacles.

It backs away from the diver, stumbling awkwardly as it goes, while the video maker swims ever closer towards it.

The octopus holds the two halves of its makeshift home with its tentacles and runs from the diver

Later in the clip the octopus stops running away and stays very still while looking at the diver.

In then decides that the time is right for it to show off its impressive defence mechanism and it gets its tentacles in place.

Suddenly, the octopus pulls the two halves of the coconut together while curling itself inside.

The octopus is filmed by the diver scurrying along the seabed while carrying two halves of a coconut

It appears to be just about ready to hide but the video concludes with the creature still visible.

The final look of the octopus is one of it staring out from its home.

Not much is known about where the video was taken, but the clip has caused quite a stir online with a number of YouTube users commenting on the quality of the footage.

The octopus stops running away and decides to show off its impressive defence mechanism

Others however have brought attention to the marine creature’s high level of intelligence.

Miss Melony wrote: ‘This scares me more than makes me giggle… I mean... are they getting smarter? How much smarter will they get. I’m concerned.’

Meanwhile CTobias Clary wrote: ‘I, for one, welcome the rise of our tentacled overlords...’