Respiratory distress syndrome is a lung condition that mainly affects premature babies. It occurs when the lungs are not fully developed and cannot produce enough of a substance called surfactant, which helps keep the air sacs in the lungs (alveoli) open. Without enough surfactant, the tiny air sacs collapse which makes breathing difficult and can be life-threatening for premature infants.