Dinosaurs evolved from archosaurs, a group of reptiles that includes crocodiles, birds, and pterosaurs. During the Triassic period, archosaurs were the dominant land animals, and from them, the first dinosaurs appeared. These early dinosaurs were small and bipedal, and quickly diversified into many different species.