The Cretaceous was a period with a relatively warm climate, resulting in high eustatic sea levels and creating numerous shallow inland seas. These oceans and seas were populated with now-extinct marine reptiles,ammonites and rudists, while dinosaurs continued to dominate on land. At the same time, new groups of mammals and birds, as well as flowering plants, appeared. The Cretaceous ended with a large mass extinction, the Cretaceous–Paleogene extinction event, in which many groups, including non-avian dinosaurs, pterosaurs and large marine reptiles, died out. The end of the Cretaceous is defined by the K–Pg boundary, a geologic signature associated with the mass extinction which lies between the Mesozoic and Cenozoic eras.