To study the influence of the Affordable Care Act (ACA) policy and its Medicaid expansion on insurance status and survival in patients with HIV with aggressive lymphoma. We used the National Cancer Database, a hospital-based national registry, to identify adults age 18-64 years with HIV-associated aggressive B-cell non-Hodgkin lymphomas (HIV-a-B-NHLs), diagnosed during 2007 to 2016. Survival analysis was performed on a subset of patients with HIV-a-B-NHL for whom location data were available who resided in Medicaid expansion-adopted and nonadopted states. Using a quasi-experimental difference-in-difference model, the difference in adjusted 2-year survival rates obtained with a flexible parametric Weibull model was compared for states that adopted the Medicaid expansion of ACA against those that did not adopt the expansion. We identified 8,231 patients with HIV-a-B-NHL and 50,650 non-HIV patients with a-B-NHL. We found that a lower proportion of individuals were uninsured at diagnosis in the expansion states compared with nonexpansion states. We also found that the ACA policy adoption led to a reduction in the proportion of uninsured individuals with HIV-a-B-NHL in expansion states of 34.9%, compared with 15.9% in non-expansion-adopted states. There was a statistically significant improvement in the 2-year survival rate among patients with HIV-a-B-NHL in the expansion compared with nonexpansion states with the adoption of ACA (7.17% v 1.58%, P = .02). Using a novel quasi-experimental model, we found that the ACA policy corresponded with a greater survival improvement in patients with HIV-a-B-NHL within Medicaid expansion-adopted states compared with nonexpansion states. We believe that this evidence should be taken into consideration in future policy making.