Some of the two-legged fossils we consider dinosaurs were really birds that had lost their ability to fly.