Cutaneous TRPV1+ neurons directly sense noxious stimuli, inflammatory cytokines, and pathogen-associated molecules and are required for innate immunity against some skin pathogens. Important unanswered questions are whether TRPV1+ neuron activation in isolation is sufficient to initiate innate immune responses and what is the biological function for TRPV1+ neuron-initiated immune responses. We used TRPV1-Ai32 optogenetic mice and cutaneous light stimulation to activate cutaneous neurons in the absence of tissue damage or pathogen-associated products. We found that TRPV1+ neuron activation was sufficient to elicit a local type 17 immune response that augmented host defense to C. albicans and S. aureus. Moreover, local neuron activation elicited type 17 responses and augmented host defense at adjacent, unstimulated skin through a nerve reflex arc. These data show the sufficiency of TRPV1+ neuron activation for host defense and demonstrate the existence of functional anticipatory innate immunity at sites adjacent to infection that depends on antidromic neuron activation.