The basic biological function of glutamine synthetase (Gs) is to catalyze the conversion of ammonium and glutamate to glutamine. This synthetase also performs other biological functions. However, the roles of Gs in fungi, especially in filamentous fungi, are not fully understood. Here, we found that conditional disruption of glutamine synthetase (AflGsA) gene expression in Aspergillus flavus by using a xylose promoter leads to a complete glutamine deficiency. Supplementation of glutamine could restore the nutritional deficiency caused by AflGsA expression deficiency. Additionally, by using the xylose promoter for the downregulation of AflgsA expression, we found that AflGsA regulates spore and sclerotic development by regulating the transcriptional levels of sporulation genes abaA and brlA and the sclerotic generation genes nsdC and nsdD, respectively. In addition, AflGsA was found to maintain the balance of reactive oxygen species (ROS) and to aid in resisting oxidative stress. AflGsA is also involved in the regulation of light signals through the production of glutamine. The results also showed that the recombinant AflGsA had glutamine synthetase activity in vitro and required the assistance of metal ions. The inhibitor molecule L-α-aminoadipic acid suppressed the activity of rAflGsA in vitro and disrupted the morphogenesis of spores, sclerotia, and colonies in A. flavus. These results provide a mechanistic link between nutrition metabolism and glutamine synthetase in A. flavus and suggest a strategy for the prevention of fungal infection.