The ROS/autophagy/NLRP3 inflammasome axis was identified as a promising target for treating subclinical bovine mastitis in this study. Here, NLRP3 is linked to mastitis.