Mesosaurs ("middle lizards") were a group of small aquatic reptiles that lived during the early Permian period (Cisuralian), roughly 299 to 270 million years ago. Mesosaurs were the first known aquatic reptiles, having apparently returned to an aquatic lifestyle from more terrestrial ancestors. It is uncertain which and how many terrestrial traits these ancestors displayed; recent research cannot establish with confidence if the first amniotes were fully terrestrial, or only amphibious. Most authors consider mesosaurs to have been aquatic, although adult animals may have been amphibious, rather than completely aquatic, as indicated by their moderate skeletal adaptations to a semiaquatic lifestyle. Similarly, their affinities are uncertain; they may have been among the most basal sauropsids or among the most basal parareptiles (in the case of which parareptiles were basal sauropsids).

Phylogeny

The phylogenetic position of mesosaurs has an important bearing on the definition of Reptilia. In one of the first major phylogenetic studies of amniotes (vertebrates laying eggs on land) Gauthier et al. (1988) placed Mesosauridae in a group called Parareptilia. Parareptilia means "at the side of reptiles" and was placed outside the clade Reptilia, which was considered a crown group. As a crown group, Reptilia included the most recent common ancestor of the then believed to be the two main lineages of living reptiles -anapsids (specifically turtles) and diapsids (all other living reptiles)- and all descendants of that common ancestor. This view of placing turtles outside of diapsids is now outdated and the majority of modern paleontologists believe that the Testudines (turtles and allies) are descended from diapsid reptiles that lost their temporal fenestrae. More recent morphological phylogenetic studies with this in mind placed turtles firmly within diapsids, and, more commonly, as a sister taxon to Archosauria (made up of crocodiles, dinosaurs -including birds- and allies). Furthermore, Anapsida is rarely considered a valid clade in recent phylogenetic analyses. In this sense, Reptilia was a node-based taxon because the first reptilian common ancestor would have been a "node" on the phylogenetic tree. Under this phylogeny, many extinct forms traditionally regarded as reptiles including mesosaurs were excluded from the group because they were outside the node.

Mesosaur

More recent phylogenetic analyses, such as that of Modesto (1999), support that of Gauthier et al. (1988) by placing mesosaurs with parareptiles. However, these phylogenies follow Laurin and Reisz (1995) in placing Parareptilia within crown-group Reptilia, meaning that mesosaurs are once again members of Reptilia. Using Laurin and Reisz's node-based definition of Sauropsida as "The last common ancestor of mesosaurs, testudines and diapsids, and all its descendants", Sauropsida and Reptilia are equivalent groupings; mesosaurs and testudines are more closely related to each other than either group is to diapsids, meaning that the clade containing testudines and diapsids (which would be crown-group Reptilia) must also contain mesosaurs. Since Reptilia was named earlier than Sauropsida, it is used most often in modern phylogenetic analyses.

Mesosaur

A 2017 phylogenetic analysis by Laurin (who had previously published the 1995 study) and Piñeiro recovered mesosaurs as a basal member of Sauropsida/Reptilia and no longer present within Parareptilia, with Parareptilia being redefined as including former members of Procolophonomorpha (found to be paraphyletic), Millerosauria, Pareiasauria, and Pantestudines, with the latter two being found to be sister groups to one another. Parareptilia was also found to actually nest inside Diapsida as the sister group to Neodiapsida.

Mesosaur