A 10-kilometer asteroid hit the Yucatán Peninsula and triggered a cascading apocalypse — not just the impact itself, but the aftermath. This is the K-Pg extinction event (formerly called K-T), and it killed about 75% of all species on Earth, including all non-avian dinosaurs.
An asteroid roughly the size of Mount Everest (called Chicxulub, after the impact crater) struck what is now Mexico at about 20 kilometers per second. The energy released was equivalent to billions of atomic bombs. The impact created a crater 180 kilometers wide and vaporized rock, sending a shockwave outward that flattened forests thousands of kilometers away.
Small mammals, birds, crocodiles, turtles, and amphibians survived because they required less food, could shelter in burrows, or had other survival advantages. Birds are, technically, living dinosaurs — the lineage never died out. Large animals (dinosaurs, pterosaurs, large marine reptiles) could not survive the starvation period. This is why we have sparrows today but not Triceratops.
Pro tip: The smoking gun for this theory came in the 1980s when scientists found iridium (rare on Earth but common in meteorites) in the K-Pg boundary layer worldwide. Before that, scientists thought dinosaurs had just slowly faded away. The impact hypothesis was radical at the time — now it is ironclad.