A threatened African pygmy hedgehog can pull its soft underside inward and present a ball of spines. The transformation is a coordinated muscular response, not a set of quills fired at an attacker.
The familiar small face belongs to an animal with a distinct wild history.
Which hedgehog is this?
This article focuses on the four-toed hedgehog, Atelerix albiventris, commonly associated with the name African pygmy hedgehog.
The name is also used loosely in the pet trade, so labels should be checked rather than assumed to describe every captive animal's ancestry.
Animal Diversity Web describes the species and its African distribution.

How the ball works
Muscles help draw the skin and body into a compact shape. The spines face outward while vulnerable areas become less exposed.
The spines are modified hairs. They stay attached during normal defensive display; the animal does not launch them across a gap.
When relaxed, its outline is much less spherical, with the snout and limbs visible.
A nighttime search for food
Four-toed hedgehogs feed largely on small animal foods, including invertebrates. Smell and hearing help them investigate their surroundings.
Their wild lives involve more than sitting still for a close photograph. They need routes through cover, feeding opportunities, and suitable resting places.
The genus account also shows that African hedgehogs are a varied group rather than one uniform animal.

Keep origin and setting clear
Photographs taken in Mexico or other countries outside the native range usually show animals in human care. Those locations should not be used to redraw the species' natural distribution.
The hedgehog's defensive ball is extraordinary because it turns a soft-bodied mammal into a protected shape. Understanding that response makes the animal more interesting than its familiar pet image alone.
Photo credits
Featured image: Jason Graham; Source; CC0. Resized for web display.
Body image 1: Cvmontuy; Source; CC BY 4.0. Resized for web display.
Body image 2: Cvmontuy; Source; CC BY 4.0. Resized for web display.
