Surfactant production begins in the fetal lung around the 24th week of gestation and continues to increase until term. The production is primarily regulated by type II alveolar cells. In preterm infants, the immature lungs may not produce enough surfactant, leading to RDS.