INTRODUCTION: Deep brain stimulation (DBS) is a widely used neurosurgical procedure for treating Parkinson's disease (PD) and essential tremor (ET). Lower urinary tract dysfunction is a common complication in PD, and this study examines the risk factors for postoperative urinary retention (POUR) after DBS surgery in PD and ET patients to improve patient outcomes. METHODS: This retrospective study analyzed data from patients who underwent DBS surgery for PD and ET at the University of Florida between 2010 and 2021. Data on patient characteristics and surgical details were collected and analyzed using univariate and mixed-linear models. RESULTS: 350 patients underwent 1086 DBS or IPG surgeries, with 153 of them having PD and 197 having ET. The rate of POUR was 79/477 (16.6%), 19/295 (5.2%), and 1/246 (0.4%) for Part 1, Part 2, and IPG replacement. Optimal mixed linear modeling revealed history of urinary retention (OR = 10.2, p = .002), Part 1 surgery (OR = 3.6 compared to Part 2, p < .0003), male sex (OR = 2.5, p = .011), having an electrode placed or connected for the first time (OR = 1.8, p = .046), surgical time (OR 1.5 for each 30 min increase, p < .0001), CCI (OR = 1.4 per comorbidity, p= .006), and preoperative opioid use (OR 1.4 for each additional 10 MME, p = .022) to be significant risk factors for POUR. Having an electrode in STN was found to be protective of POUR (OR = 0.4, p = .030). CONCLUSIONS: While most identified risk factors for POUR in DBS are non-modifiable, they remain important for preoperative planning. Reducing opioid use and minimizing surgical time may help mitigate POUR risk. Targeting the STN during DBS may lead to decreased POUR rates, indicating the potential benefits of STN-targeted DBS for PD and ET patients.