Rabbits belong to the animal family Leporidae, and like all members of this family, rabbits are herbivores. This means that rabbits only eat plants, such as grass, fruit, leaves and bark.
Foods such as bark, leaves and roots can be difficult for a rabbit to digest completely. To get around this problem, rabbits eat their own feces. This allows them to digest their food twice so they are able to get as many nutrients from their food as possible. If rabbits are prevented from eating their own feces, such as with domestic pets, they suffer from malnutrition and may die.