Treatment primarily involves the administration of exogenous surfactant, which can be lifesaving. This is usually delivered via an endotracheal tube directly into the lungs. The timing and dosage depend on the severity of the condition. In addition to surfactant replacement therapy, supportive measures such as mechanical ventilation and oxygen therapy are often required.