Objective: The olfactomedin (OLF) and olfactomedin-like (OLFML) domain family consists of at least four members, including OLFML2B, which promotes the EMT, metastasis and invasion of cancer. However, the function of OLFML2B in lung adenocarcinoma (LUAD) and squamous cell carcinoma (LUSC) remains unclear. The aim of this study was to clarify the clinical significance of OLFML2B in LUAD and LUSC.Methods: The genetic alteration and expression of OLFML family genes were analyzed in cBioPortal, Oncomine and TIMER database, respectively. In addition, GEPIA and UALCAN database were used to evaluate the mRNA expression of OLFML2B in LUAD and LUSC and the correlation with clinicopathological features. The protein expression of OLFML2B in STAD was explored in The Human Protein Atlas. Furthermore, the prognostic value of OLFML2B was estimated with overall survival (OS) and post-progression survival (PPS) in Kaplan-Meier plotter database. In order to evaluate the association between OLFML2B expression and cancer immune infiltrations, TIMER database was evacuated. GO enrichment and GSEA analysis were performed between OLFML2B and the associated genes associated from The Cancer Genome Atlas (TCGA) database. The single-cell RNA sequence (scRNA-seq) of OLFML family members were detected in TISCH database.Results: We found varying degrees of genetic variation among the four OLFML family members, among which OLFML2B displayed the highest incidence rate of genetic variations. The OLFML2B mRNA expression was found to be significantly higher in various cancerous tissues compared with adjacent normal tissues, including LUAD. The protein level of OLFML2B suggested the upregulation in LUAD and LUSC compared with adjacent normal tissues. The further exploration of OLFML2B in clinical indicated it correlated to the smoking habit, later clinical stages, nodal metastasis and TP53 mutation in LUAD and LUSC patients. The Kaplan-Meier analyses revealed that the increased OLFML2B level was significantly associated with the poor prognosis of LUAD patients. OLFML2B mRNA expression level had obviously negative correlations with infiltrating levels of CD8+ and CD4+ T cells, whereas was significantly associated with Treg cells, tumor-associated macrophages, neutrophils and dendritic cells. GSEA results revealed that inflammation response was significantly enriched in samples with higher expression of OLFML2B.Conclusions: These findings suggest that OLFML2B works as a prognostic biomarker for determining prognosis and immune infiltration, which is considered as a predictor of the effectiveness of immunotherapy in LUAD and LUSC. The scRNA-seq analysis revealed that OLFML2B promoted the tumor growth and aggressiveness of LUAD and LUSC.