The primary treatment for esophageal atresia is surgical. The type of surgery depends on the specific anatomy of the malformation. Surgeons aim to reconnect the esophageal segments and repair any associated TEF. In some cases, infants may require multiple surgeries or interventions over time. Preoperatively, care involves managing secretions and ensuring the infant does not aspirate.