Our findings identify NLRP3 and NLRC4 inflammasomes as potential targets for bovine mastitis therapy and could strengthen the development for other inflammasome-targeted therapies in E. coli-associated mastitis. This evidence concerns the gene NLRP3 and mastitis.