The endocannabinoid system (ECS) has an important impact on human homeostasis, but there has been no study on the association of endocannabinoid 2-AG on autophagy and physiological function using Drosophila as a model organism. In this study, we regulated the content of 2-AG in Drosophila cells by degrading or overexpressing synthetase and metabolic enzyme and found that the content of 2-AG had a positive effect on the ability of Drosophila to resist hunger and stress. The correlation between the performance of autophagy and the content of 2-AG was further explored, and it was found that the decomposition enzyme that degraded 2-AG significantly increased the amount of autophagy. We extended this study to the observation of Drosophila compound eyes, and preliminarily studied the effect of endocannabinoid content on neurodegenerative diseases, which can be applied to disease treatment in the future and explore the association between this mechanism and autophagy.