These results revealed that rCTSL enhanced the resistance to mycoplasma pneumonia for swine, and CTSL promoted SIgA responses and Ii degradation significantly. Here, CTSL is linked to Mycoplasma pneumoniae pneumonia.