A porcupine is a nocturnal rodent. Accordingly, the animals are active at night. During the day, they rest in hollow logs, holes, or crevices between stones.