The Lung Cancer Master Protocol (Lung-MAP; S1400) is a completed biomarker-driven master protocol designed to address an unmet need for better therapies for squamous non-small-cell lung cancer. Lung-MAP (S1400) was created to establish an infrastructure for biomarker screening and rapid regulatory intent evaluation of targeted therapies and was the first biomarker-driven master protocol initiated with the US National Cancer Institute (NCI).Lung-MAP (S1400) was done within the National Clinical Trials Network of the NCI using a public-private partnership. Eligible patients were aged 18 years or older, had stage IV or recurrent squamous non-small-cell lung cancer, had previously been treated with platinum-based chemotherapy, and had an Eastern Cooperative Oncology Group (ECOG) performance status of 0-2. The study included a screening component using the FoundationOne assay (Foundation Medicine, Cambridge, MA, USA) for next-generation sequencing, and a clinical trial component with biomarker-driven substudies and non-match substudies for patients who were ineligible for biomarker-driven substudies. Patients were pre-screened and received their substudy assignment upon progression, or they were screened at progression and received their substudy assignment upon completion of testing. Patients could enrol onto additional substudies after progression on a substudy. The study is registered with ClinicalTrials.gov, NCT02154490, and all research related to Lung-MAP (S1400) is completed.Between June 16, 2014, and Jan 28, 2019, 1864 patients enrolled and 1841 (98·9%) submitted tissue. 1674 (90·9%) of 1841 patients had biomarker results, and 1404 (83·9%) of 1674 patients received a substudy assignment. Of the assigned patients, 655 (46·7%) registered to a substudy. The biomarker-driven substudies evaluated taselisib (targeting PIK3CA alterations), palbociclib (cell cycle gene alterations), AZD4547 (FGFR alteration), rilotumumab plus erlotinib (MET), talazoparib (homologous recombination repair deficiency), and telisotuzumab vedotin (MET). The non-match substudies evaluated durvalumab, and nivolumab plus ipilimumab for anti-PD-1 or anti-PD-L1-naive disease, and durvalumab plus tremelimumab for anti-PD-1 or anti-PD-L1 relapsed disease. Combining data from the substudies, ten (7·0%) of 143 patients responded to targeted therapy, 53 (16·8%) of 315 patients responded to anti-PD-1 or anti-PD-L1 therapy for immunotherapy-naive disease, and three (5·4%) of 56 responded to docetaxel in the second line of therapy. Median overall survival was 5·9 months (95% CI 4·8-7·8) for the targeted therapy groups, 7·7 months (6·7-9·2) for the docetaxel groups, and 10·8 months (9·4-12·3) for the anti-PD-1 or anti-PD-L1-containing groups. Median progression-free survival was 2·5 months (95% CI 1·7-2·8) for the targeted therapy groups, 2·7 months (1·9-2·9) for the docetaxel groups, and 3·0 months (2·7-3·9) for the anti-PD-1 or anti-PD-L1-containing groups.Lung-MAP (S1400) met its goal to quickly address biomarker-driven therapy questions in squamous non-small-cell lung cancer. In early 2019, a new screening protocol was implemented expanding to all histological types of non-small-cell lung cancer and to add focus on immunotherapy combinations for anti-PD-1 and anti-PD-L1 therapy-relapsed disease. With these changes, Lung-MAP continues to meet its goal to focus on unmet needs in the treatment of advanced lung cancers.US National Institutes of Health, and AbbVie, Amgen, AstraZeneca, Bristol Myers Squibb, Genentech, and Pfizer through the Foundation for the National Institutes of Health.