A tracheoesophageal fistula (TEF) is an abnormal connection between your esophagus and trachea. The condition is often congenital, which means it happened during fetal development. TEF may also be acquired in adulthood due to cancer, infection or trauma. Treatment involves surgery to close the fistula.