SUMMARY: The motor of the membrane-anchored archaeal motility structure, the archaellum, contains FlaX, FlaI and FlaH. FlaX forms a 30 nm ring structure that acts as a scaffold protein and was shown to interact with the bifunctional ATPase FlaI and FlaH. However, the structure and function of FlaH has been enigmatic. Here we present structural and functional analyses of isolated FlaH and archaellum motor subcomplexes. The FlaH crystal structure reveals a RecA/Rad51 family fold with an ATP bound on a conserved and exposed surface, which presumably forms an oligomerization interface. FlaH does not hydrolyze ATP in vitro, but ATP binding to FlaH is essential for its interaction with FlaI and for archaellum assembly. FlaH interacts with the C-terminus of FlaX, which was earlier shown to be essential for FlaX ring formation and to mediate interaction with FlaI. Electron microscopy reveals that FlaH assembles as a second ring inside the FlaX ring in vitro. Collectively these data reveal central structural mechanisms for FlaH interactions in mediating archaellar assembly: FlaH binding within the FlaX ring and nucleotide-regulated FlaH binding to FlaI form the archaellar basal body core. : The archaellum is the type IV pili-like motility structure of Archaea. In order to understand how this structure is assembled and subsequently rotates, we have studied the interaction of the motor ATPase FlaI and the nucleotide-binding protein FlaH both in the crenarchaeal and euryarchaeal system. Moreover, we could show that the crenarchaeal FlaH is assembling inside the ring-like oligomer of FlaX which acts as the motor scaffold protein.(Figure is included in full-text article.)