We found that GPR109A could alleviate mastitis and enhance the blood milk barrier by activating autophagy. The gene discussed is HCAR2; the disease is mastitis.