YdiV is a negative regulator of cell motility. It interacts with FlhD(4)C(2) complex, a product of flagellar master operon, which works as the transcription activator of all other flagellar operons. Here, we report the crystal structures of YdiV and YdiV(2)-FlhD(2) complex at 1.9 Å and 2.9 Å resolutions, respectively. Interestingly, YdiV formed multiple types of complexes with FlhD(4)C(2). YdiV(1)-FlhD(4)C(2) and YdiV(2)-FlhD(4)C(2) still bound to DNA, while YdiV(3)-FlhD(4)C(2) and YdiV(4)-FlhD(4)C(2) did not. DNA bound FlhD(4)C(2) through wrapping around the FlhC subunit rather than the FlhD subunit. Structural analysis showed that only two peripheral FlhD subunits were accessible for YdiV binding, forming the YdiV(2)-FlhD(4)C(2) complex without affecting the integrity of ring-like structure. YdiV(2)-FlhD(2) structure and the negative staining electron microscopy reconstruction of YdiV(4)-FlhD(4)C(2) suggested that the third and fourth YdiV molecule bound to the FlhD(4)C(2) complex through squeezing into the ring-like structure of FlhD(4)C(2) between the two internal D subunits. Consequently, the ring-like structure opened up, and the complex lost DNA-binding ability. Thus, YdiV inhibits FlhD(4)C(2) only at relatively high concentrations.