Our results show that activation of GPR109A could significantly reduce the expression of N-P65, IL-6, IL-1β, and TNF-α in BMECs, thus inhibiting mastitis. The gene discussed is TNF; the disease is mastitis.