A creepy new video shows a huddled mass of sawfly larvae twitching in unison on the side of a tree in Peru.
The larvae are seen grouped tightly together where they sporadically wriggle in what experts say is a defensive manoeuvre.
By interlocking, the insects appear bigger than they would do alone, and the twitching fools predators into thinking they are a single, larger organism.
Sawflies are a large group of insects within the order Hymenoptera alongside ants, bees and wasps.
They are named after the saw-like appearance of their ovipositor - an organ jutting from the female's abdomen that is used to lay eggs.
Sawfly larvae look like caterpillars, and have previously been shown to be social insects that work well in groups.
Some species have been found to forage for food in small groups, while others travel around in twitching clumps to ward off predators.
The strange behaviour was witnessed by 26-year-old biologist Aaron Pomerantz, who spotted the sawflies in a section of Amazonian rainforest near Tabopata, Peru, last month.
In his video, Mr Pomerantz, who is a PhD student at University of California, Berkeley, first shows the sawflies while they are static.
He then moves his camera, causing the group to wriggle frantically.
Mr Pomerantz said: 'From what I can tell, collective behaviour likely evolved in order to incur a survival advantage.
'One lone sawfly might be quickly picked off by a hungry bird or spider, so being in a large tight-knit group could help