At the end of the Cretaceous Period, dinosaurs went extinct. That was about 65 million years ago. Dinosaurs are believed to have walked the Earth for close to 165 million years.