While our study provides novel insights into the role of ammonia and Slc4a11 in mastitis, there are limitations that warrant further investigation. Here, SLC4A11 is linked to mastitis.