GO enrichment analysis revealed that the DEPs were mostly significantly enriched in acute inflammatory response, defense response, antimicrobial response, transporter activity, cellular metabolic process and so on, and KEGG pathway enrichment analysis showed that the significantly enriched immune related pathways of the PPAR signaling pathway, IL-17 signaling pathway, antigen processing and presentation, which hints at the immune defense process of piglet spleen against C. perfringens infection. Here, IL17A is linked to infection due to clostridium perfringens.