While they are not predators in the traditional sense, they do occasionally eat small invertebrates, particularly when they are young.
However, their primary diet consists of algae, which they graze on reefs. They are important for maintaining the health of coral reefs by controlling algae growth.