Ciliated surfaces harbouring synchronously beating cilia can generate fluid flow or drive locomotion. In ciliary swimmers, ciliary beating, arrests, and changes in beat frequency are often coordinated across extended or discontinuous surfaces. To understand how such coordination is achieved, we studied the ciliated larvae of Platynereis dumerilii, a marine annelid. Platynereis larvae have segmental multiciliated cells that regularly display spontaneous coordinated ciliary arrests. We used whole-body connectomics, activity imaging, transgenesis, and neuron ablation to characterize the ciliomotor circuitry. We identified cholinergic, serotonergic, and catecholaminergic ciliomotor neurons. The synchronous rhythmic activation of cholinergic cells drives the coordinated arrests of all cilia. The serotonergic cells are active when cilia are beating. Serotonin inhibits the cholinergic rhythm, and increases ciliary beat frequency. Based on their connectivity and alternating activity, the catecholaminergic cells may generate the rhythm. The ciliomotor circuitry thus constitutes a stop-and-go pacemaker system for the whole-body coordination of ciliary locomotion.