Ferns are closely related to flowering plants but remain much less studied. Genome sequences of two ferns help redress this imbalance, and illuminate their mechanisms of defence and nitrogen fixation.