CO 2 is both a critical regulator of animal physiology and an important sensory cue for many animals for host detection, food location, and mate finding. The free-living soil nematode Caenorhabditis elegans shows CO 2 avoidance behavior, which requires a pair of ciliated sensory neurons, the BAG neurons. Using in vivo calcium imaging, we show that CO 2 specifically activates the BAG neurons and that the CO 2 -sensing function of BAG neurons requires TAX-2/ TAX-4 cyclic nucleotide-gated ion channels and the receptor-type guanylate cyclase GCY-9. Our results delineate a molecular pathway for CO 2 sensing and suggest that activation of a receptor-type guanylate cyclase is an evolutionarily conserved mechanism by which animals detect environmental CO 2 .guanylyl cyclase | olfaction | transcriptional profiling | regulator of G protein signaling | chemosensation T he ability to detect and respond to changing concentrations of environmental CO 2 is widespread among animals and plays a critical role in locating food, finding hosts and mates, and avoiding danger (1-4). CO 2 exposure can also have profound physiological effects, including altered respiration, motility, fecundity, and emotional state (5-7). CO 2 is sensed as an aversive cue by many free-living animals, including humans (3,6,8,9). By contrast, many parasites and disease vectors are attracted to CO 2 , which serves as a sensory cue for host location (1, 10).Nematodes constitute a large and highly diverse phylum that includes both free-living and parasitic species. Many parasitic nematodes, including some of the most devastating human-and plant-parasitic nematodes, are attracted to CO 2 . By contrast, adults of the free-living species Caenorhabditis elegans are repelled by CO 2 (11-14). CO 2 avoidance by C. elegans requires a pair of head neurons called the BAG neurons (13), which also mediate responses to decreases in ambient oxygen levels (15). Whether the BAG neurons directly sense CO 2 is not known, and the signaling pathways that mediate CO 2 detection are poorly understood.We show here that environmental CO 2 specifically activates the BAG neurons and not other neurons that drive avoidance behavior, suggesting that the BAG neurons are primary sensory neurons that detect CO 2 . Prolonged CO 2 exposure causes desensitization of avoidance behavior and the BAG neurons themselves, indicating that behavioral adaptation to CO 2 occurs at the level of the BAG neurons. In addition, we show that the CO 2 -evoked activity of the BAG neurons requires a cGMP signaling pathway consisting of the receptor guanylate cyclase GCY-9 and the cGMP-gated cation channel TAX-2/TAX-4. Insects detect CO 2 using a pair of gustatory receptors (16, 17), whereas some mammals detect CO 2 using the receptor-type guanylate cyclase, guanylate cyclase D (GC-D), and soluble adenylate cyclase (18)(19)(20). Our results show that the mechanism of CO 2 detection in C. elegans more closely resembles that of mammals than insects and suggest an evolutionarily ancient role for receptor-type guanyl...