Surfactant often is given right after birth in the delivery room to try to prevent or treat RDS. It also may be given several times in the days that follow, until the baby is able to breathe better.