Abstract Circadian biological clocks evolved across kingdoms of life as an adaptation to predictable cycles of sunrise and sunset. In the cyanobacterium Synechococcus elongatus, a protein-based clock precisely controls when different genes are turned on and off during the 24-h day but the phasing mechanism remains unclear. Here we show the molecular basis of this regulation and reconstitute clock-controlled transcription in vitro using purified components.