Mammals evolved from reptiles during triassic period. There have been many stages of development in these mammals. The main ancestors that evolved from reptiles are the Synapsids and Sauropsids. Sauropsids evolved into turtles and Synapsids into mammals. These then evolved into Pelycosaurs which finally evolved into Therapsids. These then formed the mammals. Thus these three are the main ancestors of mammals.