Background: Sotorasib is a specific, irreversible inhibitor of the GTPase protein, KRAS G12C . We compared the efficacy and safety of sotorasib with a standard-of-care treatment in patients with non-small-cell lung cancer (NSCLC) with the KRAS G12C mutation who had been previously treated with other anticancer drugs., Methods: We conducted a randomised, open-label phase 3 trial at 148 centres in 22 countries. We recruited patients aged at least 18 years with KRAS G12C -mutated advanced NSCLC, who progressed after previous platinum-based chemotherapy and a PD-1 or PD-L1 inhibitor. Key exclusion criteria included new or progressing untreated brain lesions or symptomatic brain lesions, previously identified oncogenic driver mutation other than KRAS G12C for which an approved therapy is available (eg EGFR or ALK), previous treatment with docetaxel (neoadjuvant or adjuvant docetaxel was allowed if the tumour did not progress within 6 months after the therapy was terminated), previous treatment with a direct KRAS G12C inhibitor, systemic anticancer therapy within 28 days of study day 1, and therapeutic or palliative radiation therapy within 2 weeks of treatment initiation. We randomly assigned (1:1) patients to oral sotorasib (960 mg once daily) or intravenous docetaxel (75 mg/m 2 once every 3 weeks) in an open-label manner using interactive response technology. Randomisation was stratified by number of previous lines of therapy in advanced disease (1 vs 2 vs >2), ethnicity (Asian vs non-Asian), and history of CNS metastases (present or absent). Treatment continued until an independent central confirmation of disease progression, intolerance, initiation of another anticancer therapy, withdrawal of consent, or death, whichever occurred first. The primary endpoint was progression-free survival, which was assessed by a blinded, independent central review in the intention-to-treat population. Safety was assessed in all treated patients. This trial is registered at ClinicalTrials.gov, NCT04303780, and is active but no longer recruiting., Findings: Between June 4, 2020, and April 26, 2021, 345 patients were randomly assigned to receive sotorasib (n=171 [50%]) or docetaxel (n=174 [50%]). 169 (99%) patients in the sotorasib group and 151 (87%) in the docetaxel group received at least one dose. After a median follow-up of 17·7 months (IQR 16·4-20·1), the study met its primary endpoint of a statistically significant increase in the progression-free survival for sotorasib, compared with docetaxel (median progression-free survival 5·6 months [95% CI 4·3-7·8] vs 4·5 months [3·0-5·7]; hazard ratio 0·66 [0·51-0·86]; p=0·0017). Sotorasib was well tolerated, with fewer grade 3 or worse (n=56 [33%] vs n=61 [40%]) and serious treatment-related adverse events compared with docetaxel (n=18 [11%] vs n=34 [23%]). For sotorasib, the most common treatment-related adverse events of grade 3 or worse were diarrhoea (n= 20 [12%]), alanine aminotransferase increase (n=13 [8%]), and aspartate aminotransferase increase (n=9 [5%]). For docetaxel, the most common treatment-related adverse events of grade 3 or worse were neutropenia (n=13 [9%]), fatigue (n=9 [6%]), and febrile neutropenia (n=8 [5%])., Interpretation: Sotorasib significantly increased progression-free survival and had a more favourable safety profile, compared with docetaxel, in patients with advanced NSCLC with the KRAS G12C mutation and who had been previously treated with other anticancer drugs., Funding: Amgen., Competing Interests: Declaration of interests AJdL reports financial interests, institutional, research grant from BMS, MSD, Boehringer, AstraZeneca; non-financial interests, other from Merck Serono, Roche. MLJ reports financial interests, institutional, research grant from AbbVie, Acerta, Adaptimmune, Amgen, Apexigen, Arcus Biosciences, Array BioPharma, Artios Pharma, AstraZeneca, Atreca, BeiGene, BerGenBio, BioAtla, Boehringer Ingelheim, Calithera Biosciences, Corvus Pharmaceuticals, Curis, CytomX, Daiichi Sankyo, Dracen Pharmaceuticals, Dynavax, Lilly, EMD Serono, Erasca, Exelixis, Fate Therapeutics, Genentech/Roche, Genmab, Genocea Biosciences, GlaxoSmithKline, Gritstone Oncology, Guardant Health, Harpoon, Helsinn Healthcare, Hengrui Therapeutics, Hutchison MediPharma, IDEAYA Biosciences, IGM Biosciences, Immunocore, Incyte, Janssen, Kadmon Pharmaceuticals, Loxo Oncology, Lycera, Memorial Sloan-Kettering, Merck, Merus, NeoImmune Tech, Neovia Oncology, Novartis, Numab Therapeutics, Nuvalent, OncoMed Pharmaceuticals, Pfizer, PMV Pharmaceuticals, Regeneron Pharmaceuticals, Relay Therapeutics, Revolution Medicines, Ribon Therapeutics, Rubius Therapeutics, Sanofi, Seven and Eight Biopharmaceuticals/Birdie Biopharmaceuticals, Shattuck Labs, Silicon Therapeutics, Stem CentRx, Syndax Pharmaceuticals, Takeda Pharmaceuticals, Tarveda Therapeutics, TCR2 Therapeutics, Tempest Therapeutics, Tizona Therapeutics, Tmunity Therapeutics, Turning Point Therapeutics, University of Michigan, Vyriad, WindMIL, Y-mAbs Therapeutics, Black Diamond, Carisma Therapeutics, Elicio Therapeutics, EQRx, Immunitas Therapeutics, Kartos Therapeutics, Mirati Therapeutics, Palleon Pharmaceuticals, Rain Therapeutics; financial interests, institutional, consulting fees from AbbVie, Amgen, Astellas, AstraZeneca, Axelia Oncology, Black Diamond, Calithera Biosciences, Checkpoint Therapeutics, CytomX Therapeutics, Daiichi Sankyo, EcoR1, Editas Medicine, Eisai, Genentech/Roche, Genmab, Genocea Biosciences, GlaxoSmithKline, Gritstone Oncology, IDEAYA Biosciences, iTeos Therapeutics, Janssen, Lilly, Merck, Mirati Therapeutics, Molecular Axiom, Novartis, Oncorus, Regeneron Pharmaceuticals, Ribon Therapeutics, Sanofi-Aventis, Turning Point Therapeutics, VBL Therapeutics, Takeda Pharmaceuticals, Arrivant, Pyramid Biosciences, Revolution Medicines, Seagen. JM reports financial interests, personal fees from Amgen, AstraZeneca, Roche, Pierre Fabre, Pfizer; financial interests, institutional, research grant from AstraZeneca, Roche, Pierre Fabre; advisory board for Merck, Roche, AstraZeneca, MSD, BMS, Pfizer, Hengrui Therapeutics, Daiichi, Boehringer, Pierre Fabre, Amgen. A MCD reports other, institutional, advisory board for Amgen, Bayer, Boehringer Ingelheim, Roche, Sanofi; other, institutional, invited speaker for AstraZeneca, Janssen, Eli Lilly, Pfizer, Takeda; financial interests, institutional, research grant from Amgen; financial interests, institutional, principal investigator, local PI for Amgen, Daiichi, JNJ, Eli Lilly, Mirati Therapeutics; financial interests, institutional, principal investigator, coordinating PI for Roche; financial interests, institutional, other, steering committee member for Roche. GM reports financial interests, personal, other, consulting fees from Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Takeda Hellas, Janssen Greece, GSK Greece, Amgen Hellas, Sanofi Greece, Boehringer Greece; financial interests, personal, other, payment or honoraria for lectures, presentations, speakers bureaus, manuscript writing or educational events from Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Takeda Hellas, Pierre Fabre Greece, Janssen Greece, GSK Greece, Amgen Hellas, Sanofi Greece, Boehringer Greece; financial interests, personal, other, payment for expert testimony from Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Takeda Hellas, Pierre Fabre Greece, Janssen Greece, GSK Greece, Amgen Hellas, Sanofi Greece, Boehringer Greece; financial interests, personal, other, support for attending meetings and/or travel from Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Takeda Hellas, Pierre Fabre Greece, Janssen Greece, GSK Greece, Amgen Hellas, Sanofi Greece, Boehringer Greece; financial interests, personal, other, participation on a data safety monitoring board or advisory board for Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Takeda Hellas, Janssen Greece, GSK Greece, Amgen Hellas, Sanofi Greece, Boehringer Greece; financial interests, personal, other, leadership or fiduciary role in other board, society, committee or advocacy group, unpaid for European Society for Medical Oncology working groups (Educational Publication Working Group, Adolescents and Young Adults working group); financial interests, institutional, principal investigator for Roche Hellas, Novartis Greece, BMS Greece, MSD Greece, AstraZeneca Greece, Gilead Greece, GSK Greece, Amgen Hellas, Sanofi Greece. MP reports financial interests, personal, advisory board for AbbVie, AstraZeneca, BMS, Boehringer Ingelheim, Eisei, MSD, Novartis, Pfizer, Roche, Takeda, Merck, Sanofi, Bayer, Amgen; financial interests, personal, other, travel grant from AstraZeneca, BMS, Boehringer Ingelheim, Roche, Takeda, Vifor; financial interests, personal, speaker fees from Janssen, Nestle. JW reports financial interests, personal, advisory board, lectures fees from Amgen, AstraZeneca, Bayer, Blueprint, BMS, Boehringer Ingelheim, Chugai, Daiichi Sankyo, Merck, Janssen, Lilly, Loxo, MSD, Novartis, Pfizer, Roche, Seattle Genetics, Takeda, Turning Point, Nuvalent; financial interests, institutional, research grant from BMS, Janssen, Novartis, Pfizer. MS reports financial interests, institutional, research grant from AstraZeneca, Bristol Myers Squibb; financial interests, personal, consulting fees from Amgen, AstraZeneca, BIOCAD, Boehringer Ingelheim, Bristol Myers Squibb, GlaxoSmithKline, Janssen, Merck Serono, Novartis, Roche, Sanofi, Takeda; financial interests, personal, payment or honoraria for lectures, presentations, speakers bureaus, manuscript writing or educational events from Amgen, Boehringer Ingelheim, Bristol Myers Squibb, Janssen, Novartis; financial interests, personal, support for attending meetings and/or travel from BIOCAD, Bristol Myers Squibb, Boehringer Ingelheim, Janssen, Novartis; financial interests, personal, participation on a data safety monitoring board or advisory board for Amgen, Bristol Myers Squibb, Novartis, Sanofi, GlaxoSmithKline, Merck Serono. HL reports financial interests, other, personal fees from Daiichi Sankyo, AstraZeneca, Pfizer, Novartis, Amgen, MSD, Roche, BMS, Eli Lilly, Boehringer Ingelheim. FS reports financial interests, personal, other, consulting fees from AstraZeneca, Amgen, Novartis, BeiGene Guardant Health, BerGenBio, Navire Pharma, Tango Therapeutics, Calithera Biosciences; financial interests, personal, other, lecture fees from European Society for Medical Oncology, Japanese Lung Cancer Society, Medscape, Intellisphere, VSPO McGill Universite de Montreal, RV Mais Promoção Eventos Ltda, MJH Life Sciences, IDEOlogy Health, MI&T, PER, LLC, CURIO; financial interests, personal, other, fees for travel, food and beverage from Dava Oncology, Tango Therapeutics, American Association for Cancer Research, International Association for the Study of Lung Cancer (IASLC), MJH Life Sciences, IDEOlogy Health, MI&T, PER, LLC, CURIO; financial interests, personal, stocks/shares, stock or stock options for BioNTech SE, Moderna (completed 2020); financial interests, institutional, research grant from Amgen, Mirati Therapeutics, Revolution Medicines, Pfizer, Novartis, Merck & Co; participation on a data safety monitoring board or advisory board for AstraZeneca, Amgen, Novartis, BeiGene, Guardant Health, BerGenBio; Calithera Biosciences. YY reports no relationships to disclose. S-WK reports no relationships to disclose. HL reports financial interests, personal, other, consulting fees from Roche, Novartis, BMS, MSD, AstraZeneca, Takeda, GSK, Merck, Amgen, Boehringer, Pfizer, Lilly; financial interests, personal, other, payment or honoraria for lectures, presentations, speakers bureaus, manuscript writing or educational events from Roche, Novartis, BMS, MSD, AstraZeneca, Takeda, AbbVie, GSK, Amgen, Boehringer, Pfizer, Lilly; financial interests, personal, other, payment for expert testimony from Roche, Novartis, BMS, MSD, AstraZeneca, Takeda, GSK, Amgen, Boehringer, Pfizer, Lilly; financial interests, personal, other, support for attending meetings and/or travel from Roche, Novartis, BMS, MSD, AstraZeneca, GSK, Amgen, Boehringer, Pfizer; financial interests, personal, participation on a data safety monitoring board or advisory board for Roche, Novartis, BMS, MSD, AstraZeneca, Takeda, GSK, Amgen, Boehringer, Pfizer, Lilly; other, personal, leadership role, W4O Core Committee – Unpaid for European Society for Medical Oncology; other, personal, leadership role, President of the Scientific Committee and Member of the Board of Directors – Unpaid for Hellenic Cooperative Oncology Group; other, personal, leadership role, member of board of directors – unpaid for Hellenic Foundation for Cancer Research, FairLife LCC; Other, personal, leadership role, legal representative member of board of directors - unpaid for W4O-Hellas; financial interests, personal and institutional, principal investigator, pi in sponsored clinical trials, personal and institutional fees from Bristol Myers Squibb, Boehringer Ingelheim, Roche, AbbVie, Lilly, Novartis, AstraZeneca, Amgen, PPD, Parexel ILR, Qualitis, Health Data Specialist. SN reports financial interests, personal, advisor/speaker bureau for AstraZeneca, BI, MSD, Roche, Sanofi, Pfizer, Takeda, Thermo Fisher, Novartis; financial interests, personal, speaker bureau for BeiGene. AJvdW reports financial interests, institutional, research grant from AstraZeneca, Boehringer-Ingelheim, Pfizer, Roche, Takeda; financial interests, fees to institution from AstraZeneca, Boehringer-Ingelheim, Pfizer, Roche, Takeda, Janssen Cilag, Lilly, Amgen, Merck. YC reports other, personal, speaker faculty for Amgen, AstraZeneca, Bristol Myers Squibb, Guardant Health, Jazz Pharmaceuticals, Pfizer, Takeda; other, personal, advisory board for AstraZeneca, Bristol Myers Squibb, Mirati Therapeutics; financial interests, institutional, principal investigator, local PI for Amgen, AstraZeneca, Bristol Myers Squibb, EMD/Serono, Helsinn, Ipsen, Merck. SP reports financial interests, institutional, support for study conduct and medical writing from AstraZeneca; financial interests, institutional, principal investigator, coordinating PI for Amgen, AstraZeneca, BeiGene, Bristol Myers Squibb, GlaxoSmithKline, Merck Sharp and Dohme, Roche/Genentech. Financial interests, institutional, consulting fees from AbbVie, AiCME, Amgen, Arcus, AstraZeneca, Bayer, BeiGene, Biocartis, BioInvent, Blueprint Medicines, Boehringer Ingelheim, Bristol Myers Squibb, Clovis, Daiichi Sankyo, Debiopharm, ecancer, Eli Lilly, Elsevier, F-Star, Fishawack, Foundation Medicine, Genzyme, Gilead, GlaxoSmithKline, Illumina, Imedex, IQVIA, Incyte, Ipsen, iTeos, Janssen, Medscape, Medtoday, Merck Sharp and Dohme, Merck Serono, Merrimack, Novartis, Novocure, OncologyEducation, Pharma Mar, Phosplatin Therapeutics, PER, PeerView, Pfizer, PRIME, Regeneron, RMEI, Roche/Genentech, RTP, Sanofi, Seattle Genetics, Takeda, Vaccibody; financial interests, institution, other, payment or honoraria for lectures, presentations, speakers bureaus, manuscript writing or educational events from AiCME, AstraZeneca, Boehringer Ingelheim, Bristol Myers Squibb, ecancer, Eli Lilly, Foundation Medicine, Illumina, Imedex, Medscape, Merck Sharp and Dohme, Mirati Therapeutics, Novartis, PeerView, PER, Pfizer, Prime, Roche/Genentech, RTP, Sanofi, Takeda; financial interests, institutional, other, support for attending meetings and/or travel from AstraZeneca, Bristol Myers Squibb, Daiichi Sankyo, Eli Lilly, Merck Sharp and Dohme, Novartis, Pfizer, Roche/Genentech, Takeda; financial interests, institutional, other, participation on a data safety monitoring board or advisory board for AbbVie, AiCME, Amgen, Arcus, AstraZeneca, Bayer, BeiGene, Biocartis, BioInvent, Blueprint Medicines, Boehringer Ingelheim, Bristol-Myers Squibb, Clovis, Daiichi Sankyo, Debiopharm, ecancer, Eli Lilly, Elsevier, F-Star, Fishawack, Foundation Medicine, Genzyme, Gilead, GSK, Illumina, Imedex, IQVIA, Incyte, Ipsen, iTeos, Janssen, Medscape, Medtoday, Merck Sharp and Dohme, Merck Serono, Merrimack, Novartis, Novocure, OncologyEducation, Pharma Mar, Phosplatin Therapeutics, PER, PeerView, Pfizer, PRIME, Regeneron, RMEI, Roche/Genentech, RTP, Sanofi, Seattle Genetics, Takeda, Vaccibody. EF reports financial interests, institutional, research grant from Merck Healthcare KGaA (grant for oncology innovation), Fundación Merck Salud; financial interests, institutional, consulting fees from Amgen, AstraZeneca, Bayer, Bristol Myers Squibb, Daichi Sankyo, Eli Lilly, F. Hoffmann-La Roche, GlaxoSmithKline, Janssen, Merck Serono, Merck Sharp & Dohme, Novartis, Peptomyc, Pfizer, Sanofi, Takeda, BerGenBio; financial interests, institutional, payment or honoraria for lectures, presentations, speakers bureaus, manuscript writing or educational events from Amgen, AstraZeneca, Bristol Myers Squibb, Eli Lilly, F. Hoffmann-La Roche, Janssen, Medical Trends, Medscape, Merck Serono, Merck Sharp & Dohme, PeerVoice, Pfizer, Sanofi, Takeda, Touch Oncology; other financial/non-financial interests, board member for Grífols. BJS reports financial interests, institutional, funding, institutional funding for conduct of clinical trial from Amgen; financial interests, personal, advisory board/honoraria from Amgen, Roche-Genentech, Novartis, Pfizer, AstraZeneca, Bristol Myers Squibb, Takeda, Eli Lilly, Merck Sharp Dohme, Janssen. SSR reports financial interests, personal, research grant from Amgen, AstraZeneca; financial interests, personal, advisory board for AstraZeneca, Mirati Therapeutics, Merck, BMS, GlaxoSmithKline, Genmab. CD reports no relationships to disclose. CL reports financial interests, personal, advisory board from Amgen; financial interests, personal, educational presentation/workshop from Amgen; financial interests, institutional, advisory board for CBPartners; non-financial interests, institutional, principal investigator, coordinating PI for Amgen, BI, Mirati Therapeutics, Revolution Medicines, Roche; non-financial interests, institutional, principal investigator, local PI Apollomics. CGF reports financial interests, other, consulting fees from AstraZeneca, Janssen; advisory board for IASCL; financial interests, personal, stocks/shares, stock or stock options in Oncoclínicas - Brazil. NB reports financial interests, other, consulting fees/honoraria from Amgen. CCO, YW, BM, TV, GN, BS report financial interests, personal, current or former full-time employment, employee and stockholder/shareholder in Amgen. DW reports financial interests, personal, invited speaker, advisory event, travel for BMS; financial interests, personal, invited speaker, advisory event for AstraZeneca, Janssen, EMD Serono; financial interests, personal, invited speaker, advisory event, consultant for Amgen, Merck; financial interest, personal, advisory event, consultant for Jazz Pharmaceuticals, Fresenius Kbi; financial interests, personal, advisory event for Pfizer, Mirati Therapeutics, Regeneron/Sanofi; financial interests, personal, advisory event for Exelixis, Eisai, Pfizer, Mirati Therapeutics, Regeneron/Sanofi, Lilly, Sanofi, Astellas, Gilead. LPA reports financial interests, research grant from MSD, AstraZeneca, Pfizer, BMS; financial interests, consulting fees from Lilly, MSD, Roche, PharmaMar, Merck, AstraZeneca, Novartis, Servier, Amgen, Pfizer, Sanofi, Bayer, BMS, Mirati Therapeutics, GSK, Janssen, Takeda, Daiichi Sankyo; financial interests, payment/honoraria for lectures, presentations, speakers bureau from AstraZeneca, Janssen, Merck, Mirati Therapeutics. All other authors declare no competing interests., (Copyright © 2023 Elsevier Ltd. All rights reserved.)