Abstract The hallmark of Parkinson’s disease (PD) is the loss of dopaminergic (DA) neurons in the brain. However, little is known about why DA neurons are selectively vulnerable to PD. We previously completed a screen identifying genes associated with the progressive degeneration of DA neurons. Here we describe the role of a previously uncharacterized gene, CG42339, in the loss of DA neurons using Drosophila Melanogaster. CG42339 mutants display a progressive loss of DA neurons and locomotor dysfunction, along with an accumulation of advanced glycation end products (AGEs) in the brain. Based on this phenotype, we refer to CG42339 as vexed. We demonstrate that vexed is specifically required within cortex glia to maintain neuronal viability. Loss of vexed function results in excessive activation of the innate immune response in the brain, leading to loss of DA neurons. We show that activation of the innate immune response leads to increased nitric oxide signaling and accumulation of AGEs, which ultimately result in neurodegeneration. These results provide further insight into the relationship between the role of the immune response in the central nervous system and how this impacts neuronal viability.