Serotonin controls a switch between two distinct behavioral states of egg-laying in C. elegans. Egg laying can be modeled as a random process with animals fluctuating between an active state, where eggs are laid in clusters, and an inactive state, where eggs are retained. Single-cell ablation experiments indicate that two pairs of motor neurons, HSNL/HSNR and VC4/VC5, induce the active phase by releasing serotonin. Serotonin increases the rate of egg laying by switching the animal from a quiescent to an active egg-laying phase, a switch that requires and may be mediated through protein kinase C–dependent signaling. Genetic experiments suggest behavioral state determination is mediated through protein kinase C–