Replaces deficient or ineffective endogenous lung surfactant in neonates with respiratory distress syndrome (RDS) or in neonates at risk of developing RDS, preventing the alveoli from collapsing during expiration (endogenous lung surfactant modifies alveolar surface tension, stabilizing the alveoli).