Background: Islatravir is a nucleoside reverse transcriptase translocation inhibitor in development for the treatment and prevention of HIV-1 infection. We aimed to assess the efficacy and safety of islatravir-based regimens for the treatment of HIV-1., Methods: We did a phase 2b, randomised, double-blind, comparator-controlled, dose-ranging trial at 24 clinics or hospitals in four countries (Chile, France, the UK, and the USA). Treatment-naive adults (≥18 years) with plasma HIV-1 RNA concentrations of at least 1000 copies per mL, CD4 T-cell counts of at least 200 cells per mL, and a calculated creatinine clearance of at least 50 mL/min (all within 60 days before study treatment) were eligible for inclusion. Participants were randomly assigned (1:1:1:1) with a block size of four via an interactive voice and web response system to receive oral treatment with one of three doses of islatravir (0·25 mg, 0·75 mg, or 2·25 mg) plus doravirine (100 mg) and lamivudine (300 mg) or to doravirine (100 mg) plus lamivudine (300 mg) plus tenofovir disoproxil fumarate (TDF; 300 mg) once daily with placebo (part 1). Treatment groups were stratified according to screening HIV-1 RNA concentration (≤100 000 copies per mL or >100 000 copies per mL). After at least 24 weeks of treatment, participants taking islatravir who achieved an HIV-1 RNA concentration lower than 50 copies per mL switched to a two-drug regimen of islatravir and doravirine (part 2). All participants and study investigators were masked to treatment in part 1; in part 2, the islatravir dose was masked to all participants and investigators, but the other drugs were given open label. The primary efficacy outcomes were the proportions of participants with an HIV-1 RNA concentration lower than 50 copies per mL at weeks 24 and 48 (US Food and Drug Administration snapshot approach). The primary safety outcomes were the number of participants experiencing adverse events and the number of participants discontinuing study drug owing to adverse events. All participants who received at least one dose of any study drug were included in the analyses. This trial is ongoing, but closed to enrolment of new participants; herein, we report study findings through 48 weeks of treatment. This trial is registered with ClinicalTrials.gov, NCT03272347., Findings: Between Nov 27, 2017, and April 25, 2019, 121 participants (mean age 31 years [SD 10·9], 112 [93%] male, 92 [76%] white, 27 [22%] with HIV-1 RNA concentration >100 000 copies per mL) were randomly assigned: 29 to the 0·25 mg, 30 to the 0·75 mg, and 31 to the 2·25 mg islatravir groups, and 31 to the doravirine, lamivudine, and TDF group. At week 24, 26 (90%) of 29 participants in the 0·25 mg islatravir group, 30 (100%) of 30 in the 0·75 mg islatravir group, and 27 (87%) of 31 in the 2·25 mg islatravir group achieved HIV-1 RNA concentrations lower than 50 copies per mL compared with 27 (87%) of 31 in the doravirine plus lamivudine plus TDF group (difference 2·8%, 95% CI -14·9 to 20·4, for the 0·25 mg islatravir group; 12·9%, -1·6 to 27·5, for the 0·75 mg islatravir group; and 0·3%, -17·9 to 18·5, for the 2·25 mg islatravir group). At week 48, these data were 26 (90%) of 29 in the 0·25 mg islatravir group, 27 (90%) of 30 in the 0·75 mg islatravir group, and 24 (77%) of 31 in the 2·25 mg islatravir group compared with 26 (84%) of 31 in the doravirine plus lamivudine plus TDF group (difference 6·1%, 95% CI -12·4 to 24·4, for the 0·25 mg islatravir group; 6·2%, -12·2 to 24·6, for the 0·75 mg islatravir group; and -6·1%, -27·1 to 14·8, for the 2·75 mg islatravir group). 66 (73%) of participants in the islatravir groups combined and 24 (77%) of those in the doravirine plus lamivudine plus TDF group reported at least one adverse event. Two participants in the 2·25 mg islatravir group and one participant in the doravirine plus lamivudine plus TDF group discontinued owing to an adverse event. No deaths were reported up to week 48., Interpretation: Treatment regimens containing islatravir and doravirine showed antiviral efficacy and were well tolerated regardless of dose. Doravirine in combination with islatravir has the potential to be a potent two-drug regimen that warrants further clinical development., Funding: Merck, Sharp, & Dohme Corp, a subsidiary of Merck & Co., Inc., Competing Interests: Declaration of interests J-MM has received grants from Gilead, Merck, ViiV, and Sanofi. ED has received personal fees from Gilead Science and Janssen Therapeutics, outside the submitted work. SOK, AG, KE, MNR, TC, CH, GJH, and PS are employees of Merck, Sharp, & Dohme Corp, a subsidiary of Merck & Co., Inc. YY, AAS, CB, and CCA declare no competing interests., (Copyright © 2021 Elsevier Ltd. All rights reserved.)