Respiratory distress syndrome (RDS) is a life-threatening condition that primarily affects newborn infants, particularly those born prematurely. It occurs when the lungs lack sufficient surfactant, a substance that helps keep the small air sacs (alveoli) in the lungs open, leading to respiratory difficulties and impaired gas exchange.