In the era of combined antiretroviral therapy (cART), human immunodeficiency virus type 1 (HIV-1) is considered a chronic disease that specifically targets the brain and causes HIV-1-associated neurocognitive disorders (HAND). Endocannabinoids (eCBs) elicit neuroprotective and anti-inflammatory actions in several central nervous system (CNS) disease models, but their effects in HAND remain unknown. HIV-1 does not infect neurons, but produces viral toxins, such as transactivator of transcription (Tat), that disrupt neuronal calcium equilibrium and give rise to synaptodendritic injuries and cell death, the former being highly correlated with HAND. Consequently, we tested whether the eCBs N-arachidonoylethanolamine (anandamide/AEA) and 2-arachidonoyl-glycerol (2-AG) offer neuroprotective actions in a neuronal culture model. Specifically, we examined the neuroprotective actions of these eCBs on Tat excitotoxicity in primary cultures of prefrontal cortex neurons (PFC), and whether cannabinoid receptors mediate this neuroprotection. Tat-induced excitotoxicity was reflected by increased intracellular calcium levels, synaptodendritic damage, neuronal excitability, and neuronal death. Further, upregulation of cannabinoid 1 receptor (CB1R) protein levels was noted in the presence of HIV-1 Tat. The direct application of AEA and 2-AG reduced excitotoxic levels of intracellular calcium and promoted neuronal survival following Tat exposure, which was prevented by the CB1R antagonist rimonabant, but not by the CB2R antagonist AM630. Overall, our findings indicate that eCBs protect PFC neurons from Tat excitotoxicity in vitro via a CB1R-related mechanism. Thus, the eCB system possesses promising targets for treatment of neurodegenerative disorders associated with HIV-1 infection.