Stegosauria is a group of herbivorous ornithischian dinosaurs that lived during the Jurassic and early Cretaceous periods. Stegosaurian fossils have been found mostly in the Northern Hemisphere (North America, Europe and Asia), Africa and South America. Although their geographical origins are unclear, the earliest unequivocal stegosaurians are known from the Middle Jurassic (Bajocian-Bathonian stages), including Adratiklit, Bashanosaurus, Isaberrysaura and Thyreosaurus.
Stegosaurians belong to a clade of armored dinosaurs known as Thyreophora. Originally, they did not differ much from more basal (early-diverging) members of that group, being small, low-slung, running animals protected by armored scutes. An early evolutionary innovation was the development of spikes as defensive weapons. Later species were larger and developed long hindlimbs that no longer allowed them to run. This increased the importance of active defence by the thagomizer, which could ward off even large predators because the tail was in a higher position, pointing horizontally to the rear from the broad pelvis. Stegosaurs had complex arrays of spikes and plates running along their backs, hips and tails.