In the nematode Caenorhabditis elegans, cholinergic motor neurons stimulate muscle contraction as well as activate GABAergic motor neurons that inhibit contraction of the contralateral muscles. Here, we describe the composition of an ionotropic acetylcholine receptor that is required to maintain excitation of the cholinergic motor neurons. We identified a gain-of-function mutation that leads to spontaneous muscle convulsions. The mutation is in the pore domain of the ACR-2 acetylcholine receptor subunit and is identical to a hyperactivating mutation in the muscle receptor of patients with myasthenia gravis. Screens for suppressors of the convulsion phenotype led to the identification of other receptor subunits. Cell-specific rescue experiments indicate that these subunits function in the cholinergic motor neurons. Expression of these subunits in Xenopus oocytes demonstrates that the functional receptor is comprised of three alpha-subunits, UNC-38, UNC-63 and ACR-12, and two non-alpha-subunits, ACR-2 and ACR-3. Although this receptor exhibits a partially overlapping subunit composition with the C. elegans muscle acetylcholine receptor, it shows distinct pharmacology. Recordings from intact animals demonstrate that loss-of-function mutations in acr-2 reduce the excitability of the cholinergic motor neurons. By contrast, the acr-2(gf) mutation leads to a hyperactivation of cholinergic motor neurons and an inactivation of downstream GABAergic motor neurons in a calcium dependent manner. Presumably, this imbalance between excitatory and inhibitory input into muscles leads to convulsions. These data indicate that the ACR-2 receptor is important for the coordinated excitation and inhibition of body muscles underlying sinusoidal movement.