P. aeruginosa PilT structures with and without nucleotide reveal a dynamic type IV pilus retraction motor.