Mammal-like reptile
The precursors of reptiles are called sauropsids, and the precursors of mammals are called synapsids. The immediate ancestors of the mammals came from a group of therapsids called the cynodonts.