Gastrodin is an active ingredient derived from the rhizome of Gastrodia elata. This compound is usually used to treat convulsive illness, dizziness, vertigo, and headache. This study aimed to investigate the effect of gastrodin on the autophagy of glial cells exposed to lipopolysaccharides (LPS, 1 µg/mL). Autophagy is a form of programmed cell death, although it also promotes cell survival. In cultured astrocytes, LPS exposure induced excessive autophagy and apoptosis, which were significantly prevented by the pretreatment cells with gastrodin (10 μM). The protective effects of gastrodin via autophagy inhibition were verified by the decreased levels of LC3-II, P62, and Beclin-1, which are classical markers for autophagy. Furthermore, gastrodin protected astrocytes from apoptosis through Bcl-2 and Bax signaling pathway. The treatment of astrocytes with rapamycin (500 nM), wortmannin (100 nM), and LY294002 (10 μM), which are inhibitors of mTOR and PI3K, respectively, eliminated the known effects of gastrodin on the inhibited Beclin-1 expression. Furthermore, gastrodin blocked the down-regulation of glutamine synthetase induced by LPS exposure in astrocytes. Our results suggest that gastrodin can be used as a preventive agent for the excessive autophagy induced by LPS.