It curls up in a ball to protect itself from enemy attacks. It also curls up to prevent heatstroke during the daytime when temperatures rise sharply.
Curls up into a spiny ball when threatened. It can roll while curled up to attack or escape.