Conifers were the main food of herbivorous dinosaurs, and their resins and poisons no doubt gave them some protection against herbivores. All the reproductive features of modern conifers had evolved by the end of the Mesozoic era.