Protocatechuic acid inhibits LPS‐induced mastitis in mice through activating the pregnane X receptor. This evidence concerns the gene NR1I2 and mastitis.