The scientific question of which larger group of animals birds evolved within has traditionally been called the "origin of birds". The present scientific consensus is that birds are a group of maniraptoran theropod dinosaurs that originated during the Mesozoic era.
A close relationship between birds and dinosaurs was first proposed in the nineteenth century after the discovery of the primitive bird Archaeopteryx in Germany. Birds and extinct non-avian dinosaurs share many unique skeletal traits. Moreover, fossils of more than thirty species of non-avian dinosaur with preserved feathers have been collected. There are even very small dinosaurs, such as Microraptor and Anchiornis, which have long, vaned arm and leg feathers forming wings. The Jurassic basal avialan Pedopenna also shows these long foot feathers. Paleontologist Lawrence Witmer concluded in 2009 that this evidence is sufficient to demonstrate that avian evolution went through a four-winged stage. Fossil evidence also demonstrates that birds and dinosaurs shared features such as hollow, pneumatized bones, gastroliths in the digestive system, nest-building, and brooding behaviors.