The cattle egret feeds on a wide range of prey, particularly insects, especially grasshoppers, crickets, flies and moths, as well as spiders, frogs, and earthworms. In a rare instance, they have been observed foraging along the branches of a banyan tree for ripe figs. The species is usually found with cattle and other large grazing and browsing animals and catches small creatures disturbed by the mammals. Studies have shown that cattle egret foraging success is much higher when foraging near a large animal than when feeding singly.