The medical specialty that deals with pregnancy, childbirth, and the postpartum period, as well as the female reproductive system.