The evolution of mammals has passed through many stages since the first appearance of their synapsid ancestors in the Pennsylvanian sub-period of the late Carboniferous period. By the mid-Triassic, there were many synapsid species that looked like mammals. The lineage leading to today's mammals split up in the Jurassic; synapsids from this period include Dryolestes, more closely related to extant placentals and marsupials than to monotremes, as well as Ambondro, more closely related to monotremes. Later on, the eutherian and metatherian lineages separated; the metatherians are the animals more closely related to the marsupials, while the eutherians are those more closely related to the placentals. Since Juramaia, the earliest known eutherian, lived 160 million years ago in the Jurassic, this divergence must have occurred in the same period.AmphibiansSauropsids (including dinosaurs)CotylorhynchusEdaphosaurusDimetrodonMammalsBiarmosuchiaDinocephaliaDicynodontsGorgonopsiaTherocephalia(Mammals, eventually)DviniaProcynosuchidaeThrinaxodonCynognathusTritylodontidaeTraversodontidaeTritheledontidaeChiniquodontidaeProzostrodonMorganucodontidaeDocodontaHadrocodiumKuehneotheriidaecrown group MammalsAusktribosphenidae †MonotremesEutriconodonta †Multituberculates †Spalacotheroidea †Dryolestoidea †MarsupialsPlacentalsXenarthra (late cretaceous)(armadillos, anteaters, sloths)Pholidota (late cretaceous)(pangolins)(some extinct groups) †Insectivora (latest Cretaceous)(hedgehogs, shrews, moles, tenrecs)Zalambdalestidae † (late Cretaceous)Macroscelidea (late Eocene)(elephant shrews)Anagaloidea †Lagomorpha (Eocene)(rabbits, hares, pikas)Rodentia (late Paleocene)(mice & rats, squirrels, porcupines)Scandentia (mid-Eocene)(tree shrews)Plesiadapiformes †Primates (early Paleocene)(tarsiers, lemurs, monkeys, apes including humans)Dermoptera (late Eocene)(colugos)Chiroptera (late Paleocene)(bats)Carnivora (early Paleocene)(cats, dogs, bears, seals)(some extinct groups) †Arctostylopida † (late Paleocene)Mesonychia † (mid-Paleocene)(predators / scavengers, but not closely related to modern carnivores)Cetacea (early Eocene)(whales, dolphins, porpoises)Artiodactyla (early Eocene)(even-toed ungulates: pigs, hippos, camels, giraffes, cattle, deer)Hilalia †Perissodactyla (late Paleocene)(odd-toed ungulates: horses, rhinos, tapirs)Tubulidentata (early Miocene)(aardvarks)Hyracoidea (early Eocene)(hyraxes)Sirenia (early Eocene)(manatees, dugongs)Proboscidea (early Eocene)(elephants)Xenarthra (armadillos, anteaters, sloths) Afrosoricida (golden moles, tenrecs, otter shrews)Macroscelidea (elephant shrews) Tubulidentata (aardvarks) Hyracoidea (hyraxes) Proboscidea (elephants) Sirenia (manatees, dugongs) Erinaceomorpha (hedgehogs, gymnures)Soricomorpha (moles, shrews, solenodons) Cetartiodactyla (camels and llamas, pigs and peccaries, ruminants, whales and hippos) Pholidota (pangolins) Chiroptera (bats) Carnivora (cats, dogs, bears, seals) Perissodactyla (horses, rhinos, tapirs) Lagomorpha (rabbits, hares, pikas) Rodentia (late Paleocene) (mice and rats, squirrels, porcupines) Scandentia (tree shrews)Dermoptera (colugos)Primates (tarsiers, lemurs, monkeys, apes including humans) The evolution of mammals has passed through many stages since the first appearance of their synapsid ancestors in the Pennsylvanian sub-period of the late Carboniferous period. By the mid-Triassic, there were many synapsid species that looked like mammals. The lineage leading to today's mammals split up in the Jurassic; synapsids from this period include Dryolestes, more closely related to extant placentals and marsupials than to monotremes, as well as Ambondro, more closely related to monotremes. Later on, the eutherian and metatherian lineages separated; the metatherians are the animals more closely related to the marsupials, while the eutherians are those more closely related to the placentals. Since Juramaia, the earliest known eutherian, lived 160 million years ago in the Jurassic, this divergence must have occurred in the same period. After the Cretaceous–Paleogene extinction event wiped out the non-avian dinosaurs (birds being the only surviving dinosaurs) and several mammalian groups, placental and marsupial mammals diversified into many new forms and ecological niches throughout the Paleogene and Neogene, by the end of which all modern orders had appeared. Mammals are the only living synapsids. The synapsid lineage became distinct from the sauropsid lineage in the late Carboniferous period, between 320 and 315 million years ago. The sauropsids are today's reptiles and birds along with all the extinct animals more closely related to them than to mammals. This does not include the mammal-like reptiles, a group more closely related to the mammals. Throughout the Permian period, the synapsids included the dominant carnivores and several important herbivores. In the subsequent Triassic period, however, a previously obscure group of sauropsids, the archosaurs, became the dominant vertebrates. The mammaliaforms appeared during this period; their superior sense of smell, backed up by a large brain, facilitated entry into nocturnal niches with less exposure to archosaur predation. The nocturnal lifestyle may have contributed greatly to the development of mammalian traits such as endothermy and hair. Later in the Mesozoic, after theropod dinosaurs replaced rauisuchians as the dominant carnivores, mammals spread into other ecological niches. For example, some became aquatic, some were gliders, and some even fed on juvenile dinosaurs. Most of the evidence consists of fossils. For many years, fossils of Mesozoic mammals and their immediate ancestors were very rare and fragmentary; but, since the mid-1990s, there have been many important new finds, especially in China. The relatively new techniques of molecular phylogenetics have also shed light on some aspects of mammalian evolution by estimating the timing of important divergence points for modern species. When used carefully, these techniques often, but not always, agree with the fossil record. Although mammary glands are a signature feature of modern mammals, little is known about the evolution of lactation as these soft tissues are not often preserved in the fossil record. Most research concerning the evolution of mammals centers on the shapes of the teeth, the hardest parts of the tetrapod body. Other important research characteristics include the evolution of the middle ear bones, erect limb posture, a bony secondary palate, fur, hair, and warm-bloodedness. While living mammal species can be identified by the presence of milk-producing mammary glands in the females, other features are required when classifying fossils, because mammary glands and other soft-tissue features are not visible in fossils. One such feature available for paleontology, shared by all living mammals (including monotremes), but not present in any of the early Triassic therapsids, is shown in Figure 1 (on the right), namely: mammals use two bones for hearing that all other amniotes use for eating. The earliest amniotes had a jaw joint composed of the articular (a small bone at the back of the lower jaw) and the quadrate (a small bone at the back of the upper jaw). All non-mammalian tetrapods use this system including amphibians, turtles, lizards, snakes, crocodilians, dinosaurs (including the birds), ichthyosaurs, pterosaurs and therapsids. But mammals have a different jaw joint, composed only of the dentary (the lower jaw bone, which carries the teeth) and the squamosal (another small skull bone). In the Jurassic, their quadrate and articular bones evolved into the incus and malleus bones in the middle ear. Mammals also have a double occipital condyle; they have two knobs at the base of the skull that fit into the topmost neck vertebra, while other tetrapods have a single occipital condyle. In a 1981 article, Kenneth A. Kermack and his co-authors argued for drawing the line between mammals and earlier synapsids at the point where the mammalian pattern of molar occlusion was being acquired and the dentary-squamosal joint had appeared. The criterion chosen, they noted, is merely a matter of convenience; their choice was based on the fact that 'the lower jaw is the most likely skeletal element of a Mesozoic mammal to be preserved.' Today, most paleontologists consider that animals are mammals if they satisfy this criterion.