The study of the female reproductive system and the medical care of women during pregnancy and childbirth.