Oxalaia
Spinosaurids likely spent most of their time near or in water, feeding mostly on aquatic animals like fish. This way, they would avoid competing with other large predatory dinosaurs. Fossil evidence shows that spinosaurs sometimes also ate pterosaurs and small dinosaurs.