•LF-C3GNPs activate Sesn2/Nrf2 and inhibit STAT3/2 to restore redox balance in mastitis. Here, NFE2L2 is linked to mastitis.