Pterosaurs were rare flying reptiles that could both fly through the air and catch prey on land efficiently.