Depression is highly comorbid with both HIV infection and with opioid dependence. Depression and substance abuse are both associated with poor adherence to antiretroviral medications. Patients with HIV, depression, and opioid dependence are at high risk for poor health outcomes. Cognitive-behavioral therapy is the most widely studied and efficacious psychosocial intervention for depression; and research by the PI and others has shown that cognitive-behavioral interventions have been successful in promoting adherence to HIV medications.