Polish beachgoers scrambled after a wild boar emerged from the ocean and began attacking people as they lay in the sun.

Video posted to YouTube on Sunday shows sunbathers looking out into the waves at Karwia Beach on the Baltic Sea as the giant pig swims ashore.

The moment it hits land the boar breaks out into a sprint towards higher ground.

But when it realises it has been penned in by a fence the frightened and angry boar starts to ram people as they lie on their beachtowels.

"Jesus! It is attacking people! Let's all go into the water," one person could be heard shouting.

One bold bather brandishes a piece of driftwood as a club but doesn't appear to land a blow on the porcine intruder.