The first dinosaur to be formally named was the Megalosaurus, back in 1824.