In conclusion, we found that pathogenic E. coli HPI infection of Yunnan Saba pigs upregulated the expression of NLRP3, caspase-1, IL-1β and IL-18 mRNA, and promoted cell membrane pore formation and nuclear DNA damage in macrophages. This evidence concerns the gene IL18 and infection.