Achievement and maintenance of virologic suppression after cancer diagnosis have been associated with improved outcomes in HIV-infected patients, but few studies have analyzed the virologic and immunologic outcomes after a cancer diagnosis. All HIV-infected patients with a diagnosis of cancer between 2000 and 2011 in an urban clinic population in Baltimore, MD, were included for review. HIV-related outcomes (HIV-1 RNA viral load and CD4 cell count) were abstracted and compared for patients with non-AIDS-defining cancers (NADCs) and AIDS-defining cancers (ADCs). Four hundred twelve patients with baseline CD4 or HIV-1 RNA viral load data were analyzed. There were 122 (30%) diagnoses of ADCs and 290 (70%) NADCs. Patients with NADCs had a higher median age (54 years vs. 43 years, p < .0001) and a higher frequency of hepatitis C coinfection (52% vs. 36%, p = .002). The median baseline CD4 was lower for patients with ADCs (137 cells/mm 3 vs. 314 cells/mm 3) and patients with NADCs were more likely to be suppressed at cancer diagnosis (59% vs. 25%) (both p < .0001). The median CD4 for patients with NADCs was significantly higher than patients with ADCs at 6 and 12 months after diagnosis and higher at 18 and 24 months, but not significantly. Patients with an NADC had 2.19 times (95% CI 1.04-4.62) the adjusted odds of being suppressed at 12 months and 2.17 times the odds (95% CI 0.92-5.16) at 24 months compared to patients with an ADC diagnosis. For patients diagnosed with ADCs and NADCs in this urban clinic setting, both virologic suppression and immunologic recovery improved over time. Patients with NADCs had the highest odds of virologic suppression in the 2 years following cancer diagnosis.