Diplodocus is a genus of diplodocid sauropod dinosaur whose fossils were first discovered in 1877 by S. W. Williston. The generic name, coined by Othniel Charles Marsh in 1878, is a Neo-Latin term derived from Greek diploos "double" and dokos "beam", in reference to its double-beamed chevron bones located in the underside of the tail. These bones were initially believed to be unique to Diplodocus; however, they have since then been discovered in other members of the diplodocid family and in non-diplodocid sauropods such as Mamenchisaurus.
It lived in what is now western North America at the end of the Jurassic Period. Diplodocus is one of the more common dinosaur fossils found in the Upper Morrison Formation, a sequence of shallow marine and alluvial sediments deposited about 150 to 147 million years ago, in what is now termed the Kimmeridgian and Tithonian stages. The Morrison Formation records an environment and time dominated by gigantic sauropod dinosaurs such as Camarasaurus, Barosaurus, Apatosaurus and Brachiosaurus.
Diplodocus is among the most easily identifiable dinosaurs, with its classic dinosaur shape, long neck and tail and four sturdy legs. For many years, it was the longest dinosaur known. Its great size may have been a deterrent to the predators Allosaurus and Ceratosaurus: their remains have been found in the same strata, which suggests they coexisted with Diplodocus.