Vector-borne phytopathogenic bacteria may alter the reproductive fitness, survival, behavior, and metabolism of their vectors. Candidatus Liberibacter asiaticus (CLas) is associated with the Huanglongbing (also known as citrus greening disease), one of the most destructive citrus diseases worldwide, and transmitted by Asian citrus psyllid, Diaphorina citri (Insecta, Hemiptera, Liviidae). The genome sequencing of CLas revealed that it does not have the ability to synthesize tryptophan, the precursor of melatonin, and it must acquire it from its host plant or insect vector to achieve its biologic processes, such as growth and multiplication. Herein, we aimed to develop a GC-MS-SIM-based method to detect the endogenous melatonin from small insects such as D. citri, and to explore the hidden relationship between melatonin content and D. citri-adult survival. Then, we studied the ability of exogenous melatonin supplementation to reverse the negative effects of CLas-infection. Our findings showed that CLas-infection reduced the levels of melatonin and its biosynthetic genes (DcTPHs, DcAAAD, DcSNAT, and DcASMT) of D. citri compared to uninfected insects. In addition, CLas decreased the longevity of its vector, D. citri via the suppression of the free radical-defense associated genes (SODs, GSTs, PODs, and PHGPXs). On the other hand, melatonin supplementation could reverse the negative effects of CLas-infection. Melatonin supplementation enhanced the endogenous melatonin content, melatonin biosynthetic genes, free radical-defense associated genes, and the longevity of both healthy and CLas-infected D. citri. Furthermore, melatonin supplementation decreased the CLas bacterial population within the D. citri psyllids. Based on these findings, we hypothesize that melatonin plays multi-layered defensive roles in D. citri. These roles include acting as a natural antioxidant or as an antibacterial compound.