The results showed that the serum levels of BAFF and IL-17 in the IPAF and CTD-ILD groups were higher than in the IPF group. This evidence concerns the gene TNFSF13B and idiopathic pulmonary fibrosis.