In summary, these findings highlight the critical role of ammonia and its transporter Slc4a11 in LPS-induced mastitis, providing potential therapeutic targets for future interventions. Here, SLC4A11 is linked to mastitis.