This study provided a theoretical basis for resolving the important role of SLC11A1 in mastitis in dairy cows. Here, SLC11A1 is linked to mastitis.