In short, the extinction of dinosaurs on Earth, known as the K-Pg extinction event, was primarily caused by a massive asteroid impact, which led to global devastation, including widespread fires, tsunamis, and a global "impact winter." The resulting climate change and habitat destruction played a crucial role in the extinction of dinosaurs and many other species.