The Stegosauria was originally named as an order by O.C. Marsh in 1877. Now it is treated as an infraorder or suborder (or simply a clade) within Thyreophora, the armoured dinosaurs. It includes the families Huayangosauridae and Stegosauridae.