Pyloric stenosis is a condition in infants where the muscle controlling the outlet of the stomach becomes thickened, preventing food from passing into the small intestine. This results in projectile vomiting and requires surgical intervention to correct.