Caffeine is one of the most popular consumed psychostimulants that mitigates several neurodegenerative diseases. Nevertheless, the roles and molecular mechanisms of caffeine in HIV-associated neurocognitive disorders (HAND) remain largely unclear. Transactivator of transcription (Tat) is a major contributor to the neuropathogenesis of HAND in the central nervous system. In the present study, we determined that caffeine (100 µM) treatment significantly ameliorated Tat-induced decreased astrocytic viability, oxidative stress, inflammatory response and excessive glutamate and ATP release, thereby protecting neurons from apoptosis. Subsequently, SIRT3 was demonstrated to display neuroprotective effects against Tat during caffeine treatment. In addition, Tat downregulated SIRT3 expression via activation of EGR1 signaling, which was reversed by caffeine treatment in astrocytes. Overexpression of EGR1 entirely abolished the neuroprotective effects of caffeine against Tat. Furthermore, counteracting Tat or caffeine-induced differential expression of SIRT3 abrogated the neuroprotection of caffeine against Tat-triggered astrocytic dysfunction and neuronal apoptosis. Taken together, our study establishes that caffeine ameliorates astrocytes-mediated Tat neurotoxicity by targeting EGR1/SIRT3 signaling pathway. Our findings highlight the beneficial effects of caffeine on Tat-induced astrocytic dysfunction and neuronal death and propose that caffeine might be a novel therapeutic drug for relief of HAND.