Overall, the results of this study showed that the C4BPA gene through TLR4/NF-κB played a significant role in regulating the expression of all the major genes of immunity and inflammation factors associated with mastitis in dairy cattle. This evidence concerns the gene C4BPA and mastitis.