Many reptile groups first appeared during the Triassic period, possibly because so many niches were vacant at the time. Some of these new groups died out in the End–Triassic extinction event, but those that survived ruled the Earth for the rest of the Mesozoic. Examples include: