Preterm birth and formula feeding are key risk factors associated with necrotizing enterocolitis (NEC) in infants, but little is known about intestinal conditions that predispose to disease. Thus, structural, functional, and microbiologic indices were used to investigate the etiology of spontaneous NEC development in preterm pigs. Piglets were delivered by cesarean section at 92% gestation, reared in infant incubators, and fed infant formula or colostrum every 3 hours (n = 120) until tissue collection at 1-2 days of age. Clinical and histopathologic signs of NEC were observed in 57% of pigs fed FORMULA (26/46) and in 5% of pigs fed COLOSTRUM (2/38) (P < .05). Relative to COLOSTRUM, both healthy and sick FORMULA pigs had reduced intestinal villous heights, enzyme activities, nutrient absorption, and antioxidant levels and higher inducible nitric oxide synthetase activity (P < .05). In healthy pigs, mucosal microbial diversity remained low and diet independent. NEC pigs showed bacterial overgrowth, and a high mucosal density of Clostridium perfringens was detected in some but not all pigs. Germ-free conditions and antiserum against Clostridium perfringens toxin prevented intestinal dysfunction and NEC in formula-fed pigs, whereas the gut trophic factors, epidermal growth factor, and glucagon-like peptide 2 had limited effects. A subclinical, formula-induced mucosal atrophy and dysfunction predispose to NEC and bacterial overgrowth. The adverse feeding effects are colonization dependent and may be reduced by factors in colostrum that include antibodies against aggressive toxins such as those of Clostridium perfringens.