 Dimetrodon is often mistaken for a dinosaur or as a contemporary of dinosaurs in popular culture , but it became extinct some 40 million years before the first appearance of dinosaurs . Reptile @-@ like in appearance and physiology , Dimetrodon is nevertheless more closely related to mammals than to modern reptiles , though it is not a direct ancestor or descendant of mammals . 
