01

Two prickly mammals

Porcupines and hedgehogs are both famous for their spines, and both use them for defence against predators. It would be natural to assume they are closely related. But they are not. They belong to different orders of mammals, separated by many millions of years of evolution. Their spiny coats are a case of similar solutions arising independently.

02

Spines are hairs

In both animals, the spines are modified hairs, made of keratin, the same protein that forms our hair and nails. Over time, the ancestors of each group evolved stiff, thickened hairs that became sharp spines or quills. Because the spines arose separately in each lineage, they differ in detail, such as structure, length and how they attach to the skin.

03

Porcupines are rodents

Porcupines are rodents, part of the same order as mice, rats, squirrels and beavers. Like all rodents, they have a pair of large, continuously growing incisor teeth at the front of each jaw, used for gnawing bark, wood and plants. There are two families: Old World porcupines of Africa, Asia and Europe, and New World porcupines of the Americas, which climb trees.

04

Hedgehogs are different

Hedgehogs belong to the order Eulipotyphla, along with shrews and moles. They have many small, sharp teeth suited to eating insects, worms, slugs and other small animals. The European hedgehog is a familiar visitor to gardens in Britain and much of Europe, and other species live across Europe, Asia and Africa.

05

Different defences

Porcupine quills are barbed in many species and detach easily, lodging in the skin of an attacker, which can be painful and hard to remove. Despite the myth, porcupines cannot shoot their quills; they come loose on contact. Hedgehog spines do not detach easily. Instead, a threatened hedgehog rolls into a tight ball, using special muscles to pull its spiny skin around its body.

06

Convergent evolution

When unrelated animals evolve similar features because they face similar challenges, biologists call it convergent evolution. Spines are a good defence for small, slow animals that cannot easily run away. Other examples of convergence include the streamlined bodies of dolphins and sharks, and the wings of birds and bats. Similar appearance can hide very different ancestry.

07

Looking beneath the coat

To discover how animals are related, scientists look beyond obvious features like spines. They compare skeletons, especially teeth and skulls, and study DNA. These reveal that porcupines share ancestry with other rodents and hedgehogs with shrews and moles. The spiny coat, though striking, tells us more about lifestyle and defence than about family relationships.

08

Life in the trees and on the ground

North American porcupines are good climbers, spending much time in trees, eating bark, buds and leaves, and sometimes resting high in branches. Old World crested porcupines live on the ground, in burrows. Hedgehogs are ground-dwellers, foraging at night in hedges, gardens and grassland, and in colder regions they hibernate through winter.

09

Helping hedgehogs

European hedgehogs have declined in parts of Britain and Europe, affected by habitat loss, roads and fenced gardens. Simple steps help: cutting small gaps, about 13 centimetres wide, at the bottom of garden fences to create 'hedgehog highways', leaving wild corners, avoiding slug pellets and checking bonfires and long grass before cutting.

10

Try the arithmetic

A North American porcupine may carry around 30,000 quills. A European hedgehog has roughly 5,000 to 7,000 spines. The porcupine has about four to six times as many, though its body is also much larger.

11

Echidnas too

A third spiny mammal adds to the story. Echidnas, found in Australia and New Guinea, are covered in spines too, but they are monotremes, egg-laying mammals related to the platypus. Their spines evolved independently again. Porcupines, hedgehogs and echidnas show that spines have evolved several times in very different branches of the mammal family tree.

12

The idea to take away

Porcupines and hedgehogs both have spines made of modified hair, but they evolved them separately. Porcupines are rodents; hedgehogs belong to another order. Teeth, skeletons and DNA reveal relationships that their similar prickly coats conceal.

FOLLOW THE EVIDENCE

Sources & further reading

Spine counts are approximate. Photograph: Erethizon dorsatum - Prince Rupert.jpg by The Cosmonaut, CC BY-SA 2.5 ca, via Wikimedia Commons; cropped and resized. Photograph: Erinaceus europaeus in Altai krai 02.JPG by Игоревич, CC BY-SA 3.0, via Wikimedia Commons; cropped and resized. Reference organisations do not endorse this website.