A C-section may be planned in advance if certain medical conditions are known, such as placenta previa, breech presentation, or a previous cesarean delivery. In other cases, it may become necessary during labor due to complications like fetal distress, failure to progress in labor, or umbilical cord prolapse.