Our study demonstrates the causal associations of specific immune cell phenotypes with IPF through genetic methods and identifies CTSB, IL10, and AGER as biomarkers of IPF through bioinformatics analysis. Here, CTSB is linked to idiopathic pulmonary fibrosis.