Natural habitats of porcupines include grasslands, forests and deserts. Some species can thrive well in brushy wetlands and along riparian areas. Some are good climbers and can be found in trees.
Most species of porcupines are found in North America, South America and Africa. The North American porcupine is the largest of all species, and it is only found in Canada and the United States. Their favorite foods are the stems and natural barks of trees. They also eat fruits, flowers, nuts and berries. Porcupines can have 30,000 or more quills, which are used for defense against predators. They grow new quills to replace the ones used against predators.