T. rex went extinct during the K-T mass extinction, about 65 million years ago. This extinction killed the remaining dinosaurs (not just T. rex) and many other animal and plant groups. This extinction was probably caused by a catastrophic asteroid colliding with Earth