The signal transducer and activator of transcription 5a (Stat5a) modulates genes involved in proliferation and survival and plays pivotal roles in regulating the function of the mammary gland during pregnancy, lactation, and involution. However, there is little information about the effects of Stat5a on apoptosis of goat mammary gland epithelial cells (GMECs). In addition, parathyroid hormone-related protein (PTHrP) is a key regulator in cellular calcium transport, mammary gland development and breast tumor biology. This study aimed to explore the interaction of Stat5a and PTHrP in GMEC apoptosis. Quantitative real time PCR (qRT-PCR) suggested that Stat5a was predominantly expressed in the mammary gland, lung, liver and spleen of goats. Treating the GMECs with pimozide, an inhibitor of Stat5a that decreases Stat5a tyrosine phosphorylation, increased PTHrP levels in GMECs in a dose-dependent manner and simultaneously promoted apoptosis of the GMECs. We also demonstrated that PTHrP inhibition induced GMEC apoptosis and restrained cell proliferation. In contrast, PTHrP overexpression protected GMECs from pimozide- and calcium-induced apoptosis, and promoted cell proliferation. Furthermore, pimozide and CaCl2 downregulated the antiapoptotic protein Bcl-2 mRNA expression, respectively, and these effects were protected by PTHrP overexpression. Interestingly, we also found that Stat5a suppressed the expression of matrix metalloproteinase 9 (MMP-9) which can induce goat mammary epithelial cell migration, but PTHrP increased MMP-9 mRNA level. Thus, Stat5a may regulate GMEC survival by regulating the expression of PTHrP.