What an animal eats is a fundamental aspect of its biology, but surprisingly, the evolution of diet had not been studied across the animal kingdom until now.