Pterosaurs were winged cousins of the dinosaurs and lived from around 200 million years ago to 66 million years ago, when the last pterosaurs disappeared during the Cretaceous-Paleogene extinction that wiped out the dinosaurs. The pterosaurs are thought to have declined in diversity before their final extinction, suggesting that gradual processes played a major role in their demise. However, pterosaur fossils are very rare, and thus, it is unclear whether pterosaurs were really low in diversity at this time or whether these patterns merely result from a paucity of fossils.