Insufficient or excessive immune responses to pathogen infection are major causes of disease. Increasing evidence indicates that the nervous system regulates the immune system to help maintain immunological homeostasis. However, the precise mechanisms of this regulation are largely unknown. Here we show the existence of an octopaminergic immunoinhibitory pathway in Caenorhabditis elegans. Our study results indicate that this pathway is tonically active under normal conditions to maintain immunological homeostasis or suppress unwanted innate immune responses but downregulated upon pathogen infection to allow enhanced innate immunity. As excessive innate immune responses have been linked to human health conditions such as Crohn's disease, rheumatoid arthritis, atherosclerosis, diabetes, and Alzheimer's disease, elucidating octopaminergic neural regulation of innate immunity could be helpful in the development of new treatments for innate immune diseases.