Sauropods were herbivores, which means they ate plants. Their diet mainly consisted of ferns, conifers, and other prehistoric plants. Their long necks allowed them to reach vegetation at various heights.