Previous cohort studies conducted on large populations have suggested a potential association between obstructive sleep apnea (OSA) and an elevated risk of developing lung cancer. However, limited research has comprehensively investigated the correlation between the two conditions, and the causal effect remains unknown. A comprehensive and systematic search was conducted across various databases, including PubMed, Web of Science, Cochrane Library, and Embase, from their inception dates to November 1, 2023. To assess the relationship between OSA and lung cancer, a meta-analysis was performed. Additionally, a two-sample Mendelian randomization (MR) study was conducted using summary data. The datasets included 336,659 individuals from the FinnGen study for OSA and 27,209 individuals from the International Lung Cancer Consortium study, as well as 420,473 individuals from the UK Biobank study for lung cancer. The estimates from each study were aggregated using the inverse variance-weighted method. Data from six population-based cohort studies, encompassing 6,589,725 individuals, indicated a significant increase in the risk of developing lung cancer among patients with OSA (HR 1.28, 95% CI 1.07-1.54). However, the MR analysis did not support a causal relationship between OSA and lung cancer (OR 1.001, 95% CI 0.929-1.100). This lack of association was consistent across specific subtypes of lung cancer, including non-small-cell lung cancer (OR 1.000, 95% CI 0.999-1.000, p = 0.974), lung adenocarcinoma (OR 0.996, 95% CI 0.906-1.094, p = 0.927), and squamous cell lung carcinoma (OR 1.034, 95% CI 0.937-1.140, p = 0.507). Our meta-analysis findings suggest an elevated risk of lung cancer among individuals with OSA. However, the MR analysis did not provide evidence supporting a causal relationship between OSA and lung cancer. Further investigation is required to uncover the underlying factors contributing to the observed association between OSA and lung cancer risk.