Background: Little is known about the impact of pre-treatment drug resistance (PDR) to non-nucleoside reverse transcriptase inhibitors (NNRTIs) on the efficacy of second generation integrase inhibitors, now the standard of care drug class for HIV-1 treatment globally.Methods: We conducted next-generation sequencing on stored plasma specimens from the ADVANCE trial collected prior to treatment initiation. Our primary outcome was 96-week virologic success, defined as achievement of a viral load < 1000 copies/mL from 12 weeks, < 200 copies/mL from 24 weeks, and < 50 copies/mL from 48 through 96 weeks. We estimated the impact of PDR, defined by the presence of drug resistance on the World Health Organization (WHO) mutation list, on virologic outcomes in the entire cohort, and stratified by EFV-based versus DTG-based regimens. In sensitivity analyses, we allowed virologic failure with re-suppression, assessed FDA 48 and 96-week Snapshot outcomes, and considered minority resistance mutations (5–20% frequency).Results: Of 1,053 trial participants, 873 (83%) had plasma available and successful sequencing completed. Of these, 288 (33%) were randomized to an EFV-based regimen and 585 (67%) were randomized to a DTG-based regimen. Fourteen percent (122/873) had at least one WHO-defined mutation, of which over 98% (120/122) had NNRTI mutations. NRTI mutations were rare (20/873, 2%). Rates of virologic suppression were significantly lower in those with PDR 65% (73/112) compared to those without PDR (85% [605/713], P < 0.001). This phenomenon was consistent for both EFV-based (60% [12/20] versus 86% [214/248], P = 0.002) and DTG-based ART (61/92 [66%] versus 84% [391/465] P < 0.001, P for interaction by regimen 0.49). In multivariable models adjusted for clinical characteristics and treatment adherence, PDR strongly predicted failure [adjusted OR 0.38 (0.23–0.61), P < 0.001]. Although suppression rates were greater when allowing for non-consecutive visits with failure, PDR significantly predicted greater risk of failure for both regimens in all outcome definitions. We found no effect of mutations at frequencies 5–20% on any of our outcomes.Interpretation: NNRTI resistance prior to treatment initiation is associated with failure of integrase inhibitor-containing first-line regimens. These results portend high rates of first-line treatment failure in sub Saharan Africa, where circulating NNRTI resistance is common.