In order to explore the role of m6A-related candidate genes in the prognosis of IPF, we screened out 30 genes associated with patient prognosis by univariate Cox analysis, and then screened out 5 key genes (RBM11, RBM47, RIC3, TRAF5, ZNF14) by LASSO analysis and multivariate Cox analysis. This evidence concerns the gene ZNF14 and idiopathic pulmonary fibrosis.