Feathers in some ancient reptiles like dinosaurs, as fossils indicate, evolved to provide insulation in cold weather. However, they cannot fly with these feathers later on birds adapted the feathers to flight. This means that birds are very closely related to reptiles, since dinosaurs were reptile.