Antimicrobial peptides are a common defense against bacterial infections in many species and a significant part of the innate immune response of the bovine mammary gland. The objective of this study was to investigate the influence of epigenetic factors on vitamin D and toll-like receptor-mediated induction of β-defensins in mammary epithelial cells. Primary bovine mammary epithelial cells were treated with lipopolysaccharide (LPS, 0 or 100 ng/mL), 1,25-dihydroxyvitamin D3 [1,25(OH)2D3, 0 or 10 nM], and 5-aza-2'-deoxycytidine (5-Aza, inhibitor of DNA methyltransferase, 0 or 5 μM) or trichostatin A (TSA, inhibitor of histone deacetylase, 0 or 80 nM) in a factorial arrangement. Effects of treatments on β-defensin gene expression along with genes for cytokines and enzymes known to be induced by LPS or 1,25(OH)2D3 were evaluated by quantitative PCR. The LPS treatment induced expression of β-defensin (DEFB)3, DEFB5, DEFB7, DEFB10, enteric β-defensin (EBD), lingual antimicrobial peptide (LAP), and tracheal antimicrobial peptide (TAP); whereas, the 1,25(OH)2D3 treatment increased DEFB5 and DEFB7 expression and decreased LAP. The 5-Aza treatment increased expression of DEFB3, DEFB5, DEFB10, EBD, LAP, and TAP in the presence and absence of LPS. The TSA treatment increased expression of DEFB3, DEFB4, DEFB5, DEFB7, and DEFB10 in the absence of LPS but decreased LPS-induced expression of and LAP and TAP. Together these results indicate that β-defensin expression in bovine mammary epithelial cells is likely influenced by DNA methylation and histone acetylation. Investigation of environmental and nutritional factors that influence epigenetic control of β-defensins in the mammary gland may be beneficial for improving resistance to intramammary infections.