In the cyanobacterial circadian oscillator, KaiA and KaiB alternately stimulate autophosphorylation and autodephosphorylation of KaiC with a periodicity of approximately 24 h. KaiA activates autophosphorylation by selectively capturing the A loops of KaiC in their exposed positions. The A loops and sites of phosphorylation, residues S431 and T432, are located in the CII ring of KaiC. We find that the flexibility of the CII ring governs the rhythm of KaiC autophosphorylation and autodephosphorylation and is an example of dynamics-driven protein allostery. KaiA-induced autophosphorylation requires flexibility of the CII ring. In contrast, rigidity is required for KaiC-KaiB binding, which induces a conformational change in KaiB that enables it to sequester KaiA by binding to KaiA's linker. Autophosphorylation of the S431 residues around the CII ring stabilizes the CII ring, making it rigid. In contrast, autophosphorylation of the T432 residues offsets phospho-S431-induced rigidity to some extent. In the presence of KaiA and KaiB, the dynamic states of the CII ring of KaiC executes the following circadian rhythm: CII ST flexible → CII SpT flexible → CII pSpT rigid → CII pST very-rigid → CII ST flexible . Apparently, these dynamic states govern the pattern of phosphorylation, ST → SpT → pSpT → pST → ST. CII-CI ring-on-ring stacking is observed when the CII ring is rigid, suggesting a mechanism through which the ATPase activity of the CI ring is rhythmically controlled. SasA, a circadian clock-output protein, binds to the CI ring. Thus, rhythmic ring stacking may also control clock-output pathways.