Our results show the important role of CD8+ T cells in the pathogenesis of IPF from a new perspective, and provide potential targets for predicting prognosis and possible future clinical applications. Here, CD8A is linked to idiopathic pulmonary fibrosis.