Omnivory is the dietary practice of consuming a wide variety of foods, including both plant and animal sources. This adaptability allows species to exploit multiple ecological niches, making them more resilient in varying environments and helping them survive in diverse habitats.