The generation of spectrally pure microwave signals is a critical functionality in fundamental and applied sciences, including metrology and communications. Optical frequency combs enable the powerful technique of optical frequency division (OFD) to produce microwave oscillations of the highest quality1,2. Current implementations of OFD require multiple lasers, with space- and energy-consuming optical stabilization and electronic feedback components, resulting in device footprints incompatible with integration into a compact and robust photonic platform3–5. Here we demonstrate all-optical OFD on a photonic chip by synchronizing two distinct dynamical states of Kerr microresonators pumped by a single continuous-wave laser. The inherent stability of the terahertz beat frequency between the signal and idler fields of an optical parametric oscillator is transferred to a microwave frequency of a Kerr soliton comb, and synchronization is achieved via a coupling waveguide without the ne