Japanese researchers have shown that a type of sea slug is able to self-decapitate and regrow their bodies, a discovery that could have ramifications for regenerative medicine.

The mechanism is believed to be an extreme method for the organism to rid itself of parasites, researchers Sayaka Mitoh and Yoichi Yusa wrote in a study published in Current Biology this week. The green slugs have algae cells in their skin, so they can feed off light like a plant until they develop a new body, which takes about 20 days.

Mitoh, a doctoral researcher at Nara Women's University, noticed one day that a sea slug, known as a sacoglossan, had spontaneously detached its head from its body.