The myometrium is the thick, muscular middle layer of the uterine wall, primarily composed of smooth muscle cells. It plays a crucial role in the menstrual cycle and childbirth by contracting to expel the lining of the uterus during menstruation and pushing the baby out during labor.