Ipilimumab improves clinical outcomes when combined with nivolumab in metastatic non-small cell lung cancer (NSCLC), but its efficacy and impact on the immune microenvironment in operable NSCLC remain unclear. We report the results of the phase 2 randomized NEOSTAR trial (NCT03158129) of neoadjuvant nivolumab or nivolumab + ipilimumab followed by surgery in 44 patients with operable NSCLC, using major pathologic response (MPR) as the primary endpoint. The MPR rate for each treatment arm was tested against historical controls of neoadjuvant chemotherapy. The nivolumab + ipilimumab arm met the prespecified primary endpoint threshold of 6 MPRs in 21 patients, achieving a 38% MPR rate (8/21). We observed a 22% MPR rate (5/23) in the nivolumab arm. In 37 patients resected on trial, nivolumab and nivolumab + ipilimumab produced MPR rates of 24% (5/21) and 50% (8/16), respectively. Compared with nivolumab, nivolumab + ipilimumab resulted in higher pathologic complete response rates (10% versus 38%), less viable tumor (median 50% versus 9%), and greater frequencies of effector, tissue-resident memory and effector memory T cells. Increased abundance of gut Ruminococcus and Akkermansia spp. was associated with MPR to dual therapy. Our data indicate that neoadjuvant nivolumab + ipilimumab-based therapy enhances pathologic responses, tumor immune infiltrates and immunologic memory, and merits further investigation in operable NSCLC. Neoadjuvant treatment with nivolumab plus ipilimumab is well tolerated and demonstrates clinical efficacy in patients with early stage lung cancer.