Many ectotherms, including C. elegans, have shorter life spans at high temperature than at low temperature. High temperature is generally thought to increase the "rate of living" simply by increasing chemical reaction rates. In this study, we questioned this view and asked whether the temperature dependence of life span is subject to active regulation. We show that thermosensory neurons play a regulatory role in the temperature dependence of life span. Surprisingly, inhibiting the function of thermosensory neurons by mutation or laser ablation causes animals to have even shorter life spans at warm temperature. Thermosensory mutations shorten life span by decreasing expression of daf-9, a gene required for the synthesis of ligands that inhibit the DAF-12, a nuclear hormone receptor. The short life span of thermosensory mutants at warm temperature is completely suppressed by a daf-12(-) mutation. Our data suggest that thermosensory neurons affect life span at warm temperature by changing the activity of a steroid-signaling pathway that affects longevity. We propose that this thermosensory system allows C. elegans to reduce the effect that warm temperature would otherwise have on processes that affect aging, something that warm-blooded animals do by controlling temperature itself.