But the most fundamental reason is that dinosaurs could not adapt to the environment or climate change at that time, so they died.
Dinosaur extinction refers to the Cretaceous extinction event at the end of Mesozoic about 650 thousand years ago. It is a diversified dominant vertebrate in Mesozoic, and has dominated the global terrestrial ecosystem for more than 1 and 600 million years.