This is a phase III randomized open label study designed to compare JDQ443 as monotherapy to docetaxel in participants with advanced non-small cell lung cancer (NSCLC) harboring a KRAS G12C mutation who have been previously treated with a platinum-based chemotherapy and immune checkpoint inhibitor therapy either in sequence or in combination.