How Long Did Dinosaurs Live on Earth?

Dinosaurs ruled the planet for about 165 million years. They became extinct about 65 million years ago and scientists believe it was as a result of an asteroid crashing into the planet.