Stegosaurus lived in the Western United States of America in the Jurassic Period, roughly 150 million years ago. This means that Tyrannosaurus lived closer to today than it lived to Stegosaurus, but, if you want to have a little anachronism and display this figure near a T-Rex, we won't tell.
