Plants, fungi, and animals generate a diverse array of deterrent natural products that induce avoidance behavior in biological adversaries. The largest known chemical family of deterrents are terpenes characterized by reactive alpha,beta-unsaturated dialdehyde moieties, including the drimane sesquiterpenes and other terpene species. Deterrent sesquiterpenes are potent activators of mammalian peripheral chemosensory neurons, causing pain and neurogenic inflammation. Despite their wide-spread synthesis and medicinal use as desensitizing analgesics, their molecular targets remain unknown. Here we show that isovelleral, a noxious fungal sesquiterpene, excites sensory neurons through activation of TPRA1, an ion channel involved in inflammatory pain signaling. TRPA1 is also activated by polygodial, a drimane sesquiterpene synthesized by plants and animals. TRPA1-deficient mice show greatly reduced nocifensive behavior in response to isovelleral, indicating that TRPA1 is the major receptor for deterrent sesquiterpenes in vivo. Isovelleral and polygodial represent the first fungal and animal small molecule agonists of nociceptive transient receptor potential channels.