After medical school, graduates enter a residency program in obstetrics and gynecology, which typically lasts four years. During residency, doctors receive specialized training in areas such as prenatal care, labor and delivery, gynecologic surgery, and reproductive endocrinology.