Staphylococcus aureus (S. aureus) mastitis results in economic losses during dairy production. Understanding the biological progression of bovine S. aureus mastitis is vital for its prevention. Lipoteichoic acid is a key virulence factor of S. aureus (aLTA), but the main biological pathways involved in its effect on bovine mammary epithetionallial cells (Mac-T) apoptosis and necrosis have not been fully explored. Folic acid (FA) has anti-inflammatory and anti-apoptotic effects. However, the role of FA in mediating the effects of aLTA on apoptosis and necrosis remains unknown. We found that low concentration of aLTA inhibited apoptosis and necrosis and that high concentration promoted the apoptosis and necrosis of Mac-T. FA pretreatment alleviated high concentration of aLTA induced apoptosis. Through transcriptomic analysis, we found that nuclear receptor subfamily 4 group A (NR4A), which alters the expression of downstream genes involved in apoptosis, proliferation, and inflammation, decreased under stimulation with a low concentration of aLTA and increased under stimulation with a high concentration of aLTA. Under stimulation with a high concentration of aLTA, the expression of the NR4A subfamily could be inhibited by FA. The results showed that aLTA may affect apoptosis and necrosis through the NR4A subfamily by targeting genes involved in bacterial invasion of epithelial cells, the IL-17 signaling pathway, DNA replication, longevity regulation, the cell cycle, and tight junction pathways. We further found that the expression trends of NR4A1 and the target genes of the NR4A subfamily (PTGS2, ESPL1, MCM5, and BUB1B) in the blood of healthy cows (Healthy), subclinical mastitis cows (SCM), and SCM supplemented with FA (SCM_FA) were consistent with those observed at the cellular level in this study. Our study revealed that low and high concentrations of aLTA have opposite effects on apoptosis and necrosis of Mac-T and that FA can alleviate the apoptosis induced by high concentration of aLTA. Transcriptome analysis revealed that the NR4A subfamily play a role in the ability of FA to alleviate the apoptosis and necrosis induced by high concentration of aLTA.