Dairy cow mastitis is a detrimental factor in milk quality and food safety. Mastitis generally refers to inflammation caused by infection by pathogenic microorganisms. Our studies in recent years have revealed the role of miRNA regulation in Staphylococcus aureus‐induced mastitis. In the present study, we overexpressed and suppressed miR‐145 to investigate the function of miR‐145 in Mac‐T cells. Flow cytometry, ELISA and EdU staining were used to detect changes in the secretion of several Mac‐T cytokines and in cell proliferation. We found that overexpression of miR‐145 in Mac‐T cells significantly reduced the secretion of IL‐12 and TNF‐α, but increased the secretion of IFN‐γ; the proliferation of bovine mammary epithelial cells was also inhibited. Using quantitative real‐time PCR (qRT‐PCR), Western blotting and luciferase multiplex verification techniques, we found that miR‐145 targeted and regulated FSCN1. Knock‐down of FSCN1 significantly increased the secretion of IL‐12, while the secretion of TNF‐α was significantly downregulated in Mac‐T cells. Upon S. aureus infection of mammary gland tissue, the body initiated inflammatory responses; Bta‐miR‐145 expression was downregulated, which reduced the inhibitory effect on the FSCN1 gene; and upregulation of FSCN1 expression promoted mammary epithelial cell proliferation to allow the recovery of damaged tissue. The results of the present study will aid in understanding the immune mechanism opposing S. aureus infection in dairy cows and will provide a laboratory research basis for the prevention and treatment of mastitis.