Objective: Many persons with opioid use disorders (OUDs) have HIV disease and experience clinically significant stress after they enroll in abstinence-based treatment and undergo medically assisted withdrawal. We examined whether opioid withdrawal affects virologic control, inflammatory markers, cognition, and mood in persons with an OUD and HIV, and explored whether measures of withdrawal stress, such as activation of the HPA axis, contribute to alterations in immune function, cognition, and mood. Method and participants: Study participants were 53 persons with HIV who were admitted for OUD treatment at the City Addiction Hospital in Saint Petersburg, Russian Federation. Participants were examined at admission, at the anticipated peak of withdrawal 3 to 7 days after the last day of a clonidine-based withdrawal process lasting 7 to 14 days, and 3 to 4 weeks after completing withdrawal. At these times, participants received medical exams and were evaluated for symptoms of withdrawal, as well as cognition and mood. Viral load, plasma cortisol, DHEA sulfate ester (DHEA-S), interleukin-6 (IL-6), and soluble CD14 (sCD14) were determined. Multivariable models examined the relationships between markers of HPA activation and the other parameters over time. Results: HPA activation as indexed by cortisol/DHEA-S ratio increased during withdrawal, as did markers of immune activation, IL-6 and sCD14. There were no significant associations between viral load and indicators of HPA activation. In longitudinal analyses, higher cortisol/DHEA sulfate was related to worse cognition overall, and more mood disturbance. Increase in IL-6 was associated with worse cognitive performance on a learning task. There were no significant associations with sCD14. Conclusions: Worsening of cognition and measures of mood disturbance during withdrawal were associated with activation of the HPA axis and some measures of inflammation. Whether repeated episodes of opioid withdrawal have a cumulative impact on long-term HIV outcomes and neurocognition is a topic for further investigation.