Pterosaurs, ancient flying reptiles, achieved powered flight despite having surprisingly small brains.