Porcupines are rodents with a coat of sharp spines, or quills, that defend them from predators. They are indigenous to the Americas, Southern Asia, Europe, and Africa. Porcupines are the third largest of the rodents, behind the capybara and the beaver. Most porcupines are about 25–36 in (64–91 cm) long, with an 8–10 in (20–25 cm) long tail. Weighing 12–35 lb (5.4–15.9 kg), they are rounded, large and slow. Porcupines come in various shades of brown, gray, and the unusual white. Porcupines' spiny protection resembles that of the unrelated erinaceomorphhedgehogs and monotremeechidnas.
The common porcupine is an herbivore. It eats leaves, herbs, twigs and green plants like clover and in the winter it may eat bark. The North American porcupine often climbs trees to find food. The African porcupine is not a climber and forages on the ground. It is mostly nocturnal, but will sometimes forage for food in the day. Porcupines have become a pest in Kenya and are eaten as a delicacy. A male porcupine urinates on a female porcupine prior to mating, spraying the urine at high velocity. 
The name porcupine comes from Middle Frenchporc espin (spined pig). A regional American name for the animal is quill pig.
The eleven Old World porcupines tend to be fairly big, and have spikes that are grouped in clusters.
The two subfamilies of New World porcupines are mostly smaller (although the North American Porcupine reaches about 85 cm or 33 in in length and 18 kg or 40 lb), have their quills attached singly rather than grouped in clusters, and are excellent climbers, spending much of their time in trees. The New World porcupines evolved their spines independently (through convergent evolution) and are more closely related to several other families of rodent than they are to the Old World porcupines. Porcupines have a relatively high longevity and had held the record for being the longest-living rodent, until it was recently broken by the naked mole-rat.
Quills come in varying lengths and colors, depending on the animal's age and species.
Porcupines' quills, or spines, take on various forms, depending on the species, but all are modified hairs coated with thick plates of keratin, and they are embedded in the skin musculature. Old World porcupines (Hystricidae) have quills embedded in clusters, whereas in New World porcupines (Erethizontidae), single quills are interspersed with bristles, underfur and hair.
Quills are released by contact with them, or they may drop out when the porcupine shakes its body. New quills grow to replace lost ones. From ancient times, it was believed that porcupines could throw their quills at an enemy, but this has long been refuted.
Porcupines are only occasionally eaten in western culture, but are very popular in Southeast Asia, particularly Vietnam, where the prominent use of them as a food source has contributed to significant declines in their populations.
More commonly, their quills and guardhairs are used for traditional decorative clothing. For example, their guardhairs are used in the creation of the Native American"porky roach" headdress. The main quills may be dyed, and then applied in combination with thread to embellish leather accessories such as knife sheaths and leather bags. Lakota women would harvest the quills for quillwork by throwing a blanket over a porcupine and retrieving the quills it left stuck in the blanket.
Porcupine quills have recently inspired a new type of hypodermic needle. Thanks to backward-facing barbs on the quills, when used as needles, they are particularly good at two things – penetrating the skin and remaining in place.
A pair of North American porcupines in their habitat in Quebec
Porcupines occupy a short range of habitats in tropical and temperate parts of Asia, Southern Europe, Africa, and North and South America. Porcupines live in forests, deserts, rocky outcrops and hillsides. Some New World porcupines live in trees, but Old World porcupines stay on the rocks. Porcupines can be found on rocky areas up to 3,700 m (12,100 ft) high. Porcupines are generally nocturnal but are occasionally active during daylight.
Hunting Porcupine near the town of Cassem, The Book of Wonders by Marco Polo (first book), illumination stored at the French national library (manuscript 2810)
^Merriam-Webster Online Dictionary, s.v. "porcupine" . Retrieved July 20, 2010.
^Oxford English Dictionary, s.v. "quill" . Retrieved July 20, 2010.
^Parker, SB (1990) Grzimek's Encyclopedia of Mammals, vol. 4, McGraw-Hill, New York.[page needed]
^Buffenstein, Rochelle; Jarvis, Jennifer U. M. (May 2002). "The naked mole rat—a new record for the oldest living rodent". Science of aging knowledge environment2002 (21): pe7. doi:10.1126/sageke.2002.21.pe7. PMID14602989.
^Brooks, Emma G.E.; Roberton, Scott I.; Bell, Diana J. (2010). "The conservation impact of commercial wildlife farming of porcupines in Vietnam". Biological Conservation143 (11): 2808. doi:10.1016/j.biocon.2010.07.030.
^Cho, W. K.; Ankrum, J. A.; Guo, D.; Chester, S. A.; Yang, S. Y.; Kashyap, A.; Campbell, G. A.; Wood, R. J.; Rijal, R. K. et al. (2012). "Microstructured barbs on the North American porcupine quill enable easy tissue penetration and difficult removal". Proceedings of the National Academy of Sciences109 (52): 21289. doi:10.1073/pnas.1216441109.
^Murphy W. J., Eizirik E., Johnson W. E., Zhang Y. P., Ryder O. A. & O'Brien S. (2001). "Molecular phylogenetics and the origins of placental mammals". Nature409 (6820): 614–618. doi:10.1038/35054550. PMID11214319.
^Churakov G., Sadasivuni M. K., Rosenbloom K. R., Huchon D., Brosius J. & Schmitz J. (2010). "Rodent evolution: back to the root". Mol. Biol. Evol.27 (6): 1315–1326. doi:10.1093/molbev/msq019. PMID20100942.
^Meredith R. W., Janecka J. E., Gatesy J., Ryder O. A., Fisher C. A., Teeling E. C., Goodbla A., Eizirik E., Simao T. L., Stadler T., Rabosky D. L., Honeycutt R. L., Flynn J. J., Ingram C. M., Steiner C., Williams T. L., Robinson T. J., Burk-Herrick A., Westerman M., Ayoub N. A., Springer M. S. & Murphy W. J. (2011). "Impacts of the Cretaceous terrestrial revolution and KPg extinction on mammal diversification". Science334 (6055): 521–524. doi:10.1126/science.1211028. PMID21940861.
^Upham N. S. & Patterson B. D. (2012). "Diversification and biogeography of the Neotropical caviomorph lineage Octodontoidea (Rodentia: Hystricognathi)". Mol. Phylogenet. Evol63 (2): 417–429. doi:10.1016/j.ympev.2012.01.020. PMID22327013.