Some people keep hedgehogs as pets. African pygmy hedgehogs are the most common type that are kept as pets. They live 2-4 years in captivity. Hedgehogs are exotic pets, which means they may not be legal to keep as pets in some places. 