Mostly synapsids, also known as theromorphs or mammal-like reptiles: pelicosaurs, therapsids, cynodonts and finally early mammals. They ruled the Earth before dinosaurs, later they lived alongside early dinosaurs.