The primary function of the myometrium is to facilitate uterine contractions. During menstruation, it helps expel the endometrial lining. In pregnancy, the myometrium stretches to accommodate the growing fetus. During labor, it contracts rhythmically to aid in the delivery of the baby.