A hedgehog's diet mainly consists of insects, such as beetles, worms, caterpillars, and slugs. They may also eat fruits, vegetables, and some small mammals or baby birds if they come across them in the wild. It's important to ensure they have a balanced diet if kept as a pet.