Archosauria

Archosaurs are a group of diapsid amniotes whose living representatives consist of birds and crocodilians. This group also includes all extinct non-avian dinosaurs, many extinct crocodilian relatives, and pterosaurs. Archosauria, the archosaur clade, is a crown group that includes the most recent common ancestor of living birds and crocodilians. It includes two main clades: Pseudosuchia, which includes crocodilians and their extinct relatives, and Avemetatarsalia, which includes birds and their extinct relatives (such as non-avian dinosaurs and pterosaurs).

Distinguishing characteristics
Archosaurs can be distinguished from other tetrapods on the basis of several synapomorphies, or shared characteristics first found in a common ancestor. The simplest and most widely agreed synapomorphies of archosaurs include teeth set in sockets, antorbital and mandibular fenestrae (openings in front of the eyes and in the jaw, respectively), and a fourth trochanter (a prominent ridge on the femur). Being set in sockets, the teeth were less likely to be torn loose during feeding. This feature is responsible for the name "thecodont" (meaning "socket teeth"), which paleontologists used to apply to many Triassic archosaurs. Some archosaurs, such as birds, are secondarily toothless. Antorbital fenestrae reduced the weight of the skull, which was relatively large in early archosaurs, rather like that of modern crocodilians. These fenestrae are often larger than the orbits, or eye sockets. Mandibular fenestrae may also have reduced the weight of the jaw in some forms. The fourth trochanter provides a large site for the attachment of muscles on the femur. Stronger muscles allowed for erect gaits in early archosaurs, and may also be connected with the ability of the archosaurs or their immediate ancestors to survive the catastrophic Permian-Triassic extinction event.

Origin of archosaurs
There is some debate about when archosaurs first appeared. Those who classify the Permian reptiles Archosaurus rossicus and/or Protorosaurus speneri as true archosaurs maintain that archosaurs first appeared in the late Permian. Those who classify both Archosaurus rossicus and Protorosaurus speneri as archosauriforms (not true archosaurs but very closely related) maintain that archosaurs first evolved from archosauriform ancestors during the Olenekian stage of the Early Triassic. The earliest archosaurs were rauisuchians such as Scythosuchus and Tsylmosuchus, both of which have been found from Russia and date back to the Olenekian.

Archosaur takeover in the Triassic
Synapsids (a group including mammals and their extinct relatives, which are often referred to as "mammal-like reptiles") were the dominant land vertebrates throughout the Permian, but most perished in the Permian-Triassic extinction event. Very few large synapsids survived the event, although one form, Lystrosaurus (an herbivorous dicynodont), attained a global distribution soon after the extinction.

But archosaurs quickly became the dominant land vertebrates in the early Triassic. The two most commonly suggested explanations for this are:
 * Archosaurs made more rapid progress towards erect limbs than synapsids, and this gave them greater stamina by avoiding Carrier's constraint. An objection to this explanation is that archosaurs became dominant while they still had sprawling or semi-erect limbs, similar to those of Lystrosaurus and other synapsids.
 * The early Triassic was predominantly arid, because most of the earth's land was concentrated in the supercontinent Pangaea. Archosaurs were probably better at conserving water than early synapsids because:
 * Modern diapsids (lizards, snakes, crocodilians, birds) excrete uric acid, which can be excreted as a paste. It is reasonable to suppose that archosaurs (the ancestors of crocodilians, dinosaurs and birds) also excreted uric acid, and therefore were good at conserving water. The aglandular (glandless) skins of diapsids would also have helped to conserve water.
 * Modern mammals excrete urea, which requires a lot of water to keep it dissolved. Their skins also contain many glands, which also lose water. Assuming that early synapsids had similar features, e.g., as argued by the authors of Palaeos, they were at a disadvantage in a mainly arid world. The same well-respected site points out that "for much of Australia's Plio-Pleistocene history, where conditions were probably similar, the largest terrestrial predators were not mammals but gigantic varanid lizards (Megalania) and land crocs."

Main types of archosaurs
Since the 1970s scientists have classified archosaurs mainly on the basis of their ankles. The earliest archosaurs had "primitive mesotarsal" ankles: the astragalus and calcaneum were fixed to the tibia and fibula by sutures and the joint bent about the contact between these bones and the foot.

The Crurotarsi appeared early in the Triassic. In their ankles the astragalus was joined to the tibia by a suture and the joint rotated round a peg on the astragalus which fitted into a socket in the calcaneum. Early "crurotarsans" still walked with sprawling limbs, but some later crurotarsans developed fully erect limbs (most notably the Rauisuchia). Modern crocodilians are crurotarsans which can walk with their limbs sprawling or erect depending on speed of locomotion.

Euparkeria and the Ornithosuchidae had "reversed crurotarsal" ankles, with a peg on the calcaneum and socket on the astragalus.

The earliest fossils of Ornithodira ("bird necks") appear in the Carnian age of the late Triassic, but it is hard to see how they could have evolved from crurotarsans — possibly they actually evolved much earlier, or perhaps they evolved from the last of the "primitive mesotarsal" archosaurs. Ornithodires' "advanced mesotarsal" ankle had a very large astragalus and very small calcaneum, and could only move in one plane, like a simple hinge. This arrangement was only suitable for animals with erect limbs, but provided more stability when the animals were running. The ornithodires differed from other archosaurs in other ways: they were lightly built and usually small, their necks were long and had an S-shaped curve, their skulls were much more lightly built, and many ornithodires were completely bipedal. The archosaurian fourth trochanter on the femur may have made it easier for ornithodires to become bipeds, because it provided more leverage for the thigh muscles. In the late Triassic the ornithodires diversified to produce dinosaurs and possibly pterosaurs, though it is uncertain if the latter is actually a part of Archosauria.

Modern classification
Archosauria is normally defined as a crown group, which means that it only includes descendants of the last common ancestors of its living representatives. In the case of archosaurs, these are birds and crocodilians. Archosauria is within the larger clade Archosauriformes, which includes some closely related relatives of archosaurs such as proterochampsids and euparkeriids. These relatives are often referred to as archosaurs, despite being placed outside of crown group Archosauria in a more basal position within Archosauriformes. Historically, many archosauriforms were described as archosaurs, including proterosuchids and erythrosuchids, based on the presence of an antorbital fenestra.

While many researchers prefer to treat Archosauria as an unranked clade, some continue to assign it a traditional biological rank. Traditionally, Archosauria has been treated as a Superorder, though a few 21st century researchers have assigned it to different ranks including Division and Class.

History of classification
Archosauria as a term was first coined by American paleontologist Edward Drinker Cope in 1869, and included a wide range of taxa including dinosaurs, crocodilians, thecodonts, sauropterygians (which are diapsids of uncertain affinities, most likely lepidosauromorphs, but definitely are not archosaurs in the current sense of the word), rhynchocephalians (a group that according to Cope included rhynchosaurs, which nowadays are considered to be more basal archosauromorphs, and tuataras, which are lepidosaurs), and anomodonts, which are now considered synapsids. It was not until 1986 that Archosauria was defined as a crown-clade, restricting its use to more derived taxa. Cope's term was a Greek-Latin hybrid intended to refer to the cranial arches, but has later also been understood as "leading reptiles" or "ruling reptiles" by association with Greek ἀρχός "leader, ruler".

The term "thecodont", now considered an obsolete term, was first used by English paleontologist Richard Owen in 1859 to describe Triassic archosaurs, and it became widely used in the 20th century. Thecodonts were considered the "basal stock" from which the more advanced archosaurs descended. They did not possess features seen in later avian and crocodilian lines, and therefore were considered more primitive and ancestral to the two groups. With the cladistic revolution of the 1980s and 90s, in which cladistics became the most widely used method of classifying organisms, thecodonts were no longer considered a valid grouping. Because they are considered a "basal stock", thecodonts are paraphyletic, meaning that they form a group that does not include all descendants of its last common ancestor: in this case, the more derived crocodilians and birds are excluded from "Thecodontia" as it was formerly understood. The description of the basal ornithodires Lagerpeton and Lagosuchus in the 1970s provided evidence that linked thecodonts with dinosaurs, and contributed to the disuse of the term "Thecodontia", which many cladists consider an artificial grouping.

With the identification of "crocodilian normal" and "crocodilian reversed" ankles by Sankar Chatterjee in 1978, a basal split in Archosauria was identified. Chatterjee considered these two groups to be Pseudosuchia with the "normal" ankle and Ornithosuchidae with the "reversed" ankle. Ornithosuchids were thought to be ancestral to dinosaurs at this time. In 1979, A.R.I. Cruickshank identified the basal split and thought that the crurotarsan ankle developed independently in these two groups, but in opposite ways. Cruickshank also thought that the development of these ankle types progressed in each group to allow advanced members to have semi-erect (in the case of crocodilians) or erect (in the case of dinosaurs) gaits.

Phylogeny
In many phylogenetic analyses, archosaurs have been shown to be a monophyletic grouping, thus forming a true clade. One of the first studies of archosaur phylogeny was authored by French paleontologist Jacques Gauthier in 1986. Gauthier split Archosauria into Pseudosuchia, the crocodilian line, and Ornithosuchia, the dinosaur and pterosaur line. Pseudosuchia was defined as all archosaurs more closely related to crocodiles, while Ornithosuchia was defined as all archosaurs more closely related to birds. Proterochampsids, erythrosuchids, and proterosuchids fell successively outside Archosauria in the resulting tree. Below is the cladogram from Gauthier (1986):

In 1988, paleontologists Michael Benton and J.M. Clark produced a new tree in a phylogenetic study of basal archosaurs. As in Gauthier's tree, Benton and Clark's revealed a basal split within Archosauria. They referred to the two groups as Crocodylotarsi and Ornithosuchia. Crocodylotarsi was defined as an apomorphy-based taxon based on the presence of a "crocodile-normal" ankle joint (considered to be the defining apomorphy of the clade). Gauthier's Pseudosuchia, by contrast, was a stem-based taxon. Unlike Gauthier's tree, Benton and Clark's places Euparkeria outside Ornithosuchia and outside the crown group Archosauria all together. Benton did not consider pterosaurs to be archosaurs, and considered them to be the most basal archosauromorphs in a phylogenetic study of diapsids published three years earlier.

The clades Crurotarsi and Ornithodira were first used together in 1990 by paleontologist Paul Sereno and A.B. Arcucci in their phylogenetic study of archosaurs. They were the first to erect the clade Crurotarsi, while Ornithodira was named by Gauthier in 1986. Crurotarsi and Ornithodira replaced Pseudosuchia and Ornithosuchia, respectively, as the monophyly of both of these clades were questioned. Sereno and Arcucci incorporated archosaur features other than ankle types in their analyses, which resulted in a different tree than previous analyses. Below is a cladogram based on Sereno (1991), which is similar to the one produced by Sereno and Arcucci:

Below is a cladogram modified from Benton (2004):

Below is a cladogram from Brusatte et al., 2010:

Extinction and survival
Crocodilians, pterosaurs and dinosaurs survived the Triassic-Jurassic extinction event about 195 million years ago, but other archosaurs became extinct.

Non-avian dinosaurs and pterosaurs perished in the Cretaceous–Paleogene extinction event, which occurred approximately 65.5 million years ago, but crocodilians and birds (the only remaining dinosaur group) survived. Both are descendants of archosaurs, and are therefore archosaurs themselves under phylogenetic taxonomy.

Crocodilians (which include all modern crocodiles, alligators, and gharials) and birds flourish today. It is generally agreed that birds have the most species of all terrestrial vertebrates.

Hip joints and locomotion
Like the early tetrapods, early archosaurs had a sprawling gait because their hip sockets faced sideways, and the knobs at the tops of their femurs were in line with the femur.

In the early to middle Triassic, some archosaur groups developed hip joints which allowed (or required) a more erect gait. This gave them greater stamina, because it avoided Carrier's constraint, i.e. they could run and breathe easily at the same time. There were two main types of joint which allowed erect legs: It has been pointed out that an upright stance requires more energy, so it may indicate a higher metabolism and a higher body temperature.
 * The hip sockets faced sideways but the knobs on the femurs were at right angles to the rest of the femur, which therefore pointed downwards. Dinosaurs evolved from archosaurs with this hip arrangement.
 * The hip sockets faced downwards and the knobs on the femurs were in line with the femur. This "pillar-erect" arrangement appears to have evolved more than once independently in various archosaur lineages, for example it was common in Rauisuchia and also appeared in some aetosaurs.

Diet
Most were large predators, but members of various lines diversified into other niches. Aetosaurs were herbivores and some developed extensive armor. A few crocodilians were herbivores, e.g., Simosuchus, Phyllodontosuchus. The large crocodilian Stomatosuchus may have been a filter feeder. Sauropodomorphs and ornithischian dinosaurs were herbivores with diverse adaptations for feeding biomechanics.

Land, water and air
Archosaurs are mainly portrayed as land animals, but:
 * The phytosaurs and crocodilians dominated the rivers and swamps and even invaded the seas (e.g., the teleosaurs, Metriorhynchidae and Dyrosauridae). The Metriorhynchidae were rather dolphin-like, with paddle-like forelimbs, a tail fluke and smooth, unarmoured skins.
 * Two clades of ornithodirans, the pterosaurs and the birds, dominated the air after becoming adapted to a volant lifestyle.

Metabolism
The metabolism of archosaurs is still a controversial topic. They certainly evolved from cold-blooded ancestors, and the surviving non-dinosaurian archosaurs, crocodilians, are cold-blooded. But crocodilians have some features which are normally associated with a warm-blooded metabolism because they improve the animal's oxygen supply:
 * 4-chambered hearts. Mammals and birds have 4-chambered hearts, which completely separate the flows of oxygenated and de-oxygenated blood. Non-crocodilian reptiles have 3-chambered hearts, which are less efficient because they let the two flows mix and thus send some de-oxygenated blood out to the body instead of to the lungs. Modern crocodilians' hearts are 4-chambered, but are smaller relative to body size and run at lower pressure than those of modern mammals and birds. They also have a pulmonary bypass which makes them functionally 3-chambered when under water, conserving oxygen.
 * a secondary palate, which allows the animal to eat and breathe at the same time.
 * a hepatic piston mechanism for pumping the lungs. This is different from the lung-pumping mechanisms of mammals and birds but similar to what some researchers claim to have found in some dinosaurs.

So, why did natural selection favour the development of these features, which are very important for active warm-blooded creatures but of little apparent use to cold-blooded aquatic ambush predators which spend the vast majority of their time floating in water or lying on river banks?

Paleontological evidence shows that the ancestors of living crocodilians were active and endothermic (warm-blooded). Some experts believe that their archosaur ancestors were warm-blooded as well. Physiological, anatomical, and developmental features of the crocodilian heart support the paleontological evidence and show that the lineage reverted to ectothermy when it invaded the aquatic, ambush predator niche. Crocodilian embryos develop fully 4-chambered hearts at an early stage. Modifications to the growing heart form a pulmonary bypass shunt that includes the left aortic arch that originates from the right ventricle, the foramen of Panizza between the left and right aortic arches, and the cog‐tooth valve at the base of the pulmonary artery. The shunt is used during diving to make the heart function as 3-chambered heart, providing the crocodilian with the neurally controlled shunting used by ectotherms. The researchers concluded that the ancestors of living crocodilians had fully 4-chambered hearts, and were therefore warm-blooded, before they reverted to a cold-blooded or ectothermic metabolism. The authors also provide other evidence for endothermy in stem archosaurs. It is reasonable to suggest that later crocodilians developed the pulmonary bypass shunt as they became cold-blooded, aquatic, and less active.

If the original crocodilians and other Triassic archosaurs were warm-blooded, this would help to resolve some evolutionary puzzles:
 * The earliest crocodilians, e.g., Terrestrisuchus, were slim, leggy terrestrial predators whose build suggests a fairly active lifestyle, which requires a fairly fast metabolism. And some other crurotarsan archosaurs appear to have had erect limbs, while those of rauisuchians are very poorly adapted for any other posture. Erect limbs are advantageous for active animals because they avoid Carrier's constraint, but disadvantageous for more sluggish animals because they increase the energy costs of standing up and lying down.
 * If early archosaurs were completely cold-blooded and (as seems most likely) dinosaurs were at least fairly warm-blooded, dinosaurs would have had to evolve warm-blooded metabolisms in less than half the time it took for synapsids to do the same.

Respiratory system
A recent study of the lungs of the American Alligator has shown that the airflow through them is unidirectional, moving in the same direction during inhalation and exhalation. This is also seen in birds and many non-avian dinosaurs, which have air sacs to further aid in respiration. Both birds and alligators achieve unidirectional air flow through the presence of parabronchi, which are responsible for gas exchange. The study has found that in alligators, air enters through the second bronchial branch, moves through the parabronchi, and exits through the first bronchial branch. Unidirectional airflow in both birds and alligators suggests that this type of respiration was present in basal Triassic archosaurs and their non-dinosaurian descendants, including phytosaurs, aetosaurs, rauisuchians, crocodylomorphs, and pterosaurs. The use of unidirectional airflow in the lungs of archosaurs may have given the group an advantage over synapsids, which had lungs where air moved tidally in and out through a network of bronchi that terminated in alveoli, which were cul-de-sacs. The better efficiency in gas transfer seen in archosaur lungs may have been advantageous during the times of low atmospheric oxygen which are thought to have existed during the Mesozoic.