The present invention relates to methods of treating or reducing the risk of necrotizing enterocolitis (NEC) in an infant comprising orally administering an effective amount of a CpG-ODN. It is based, at least in part, on the results of experiments in which orally administered CpG-ODNs were observed to reduce the histopathology and markers of inflammation in a murine model for NEC. The present invention further provides for oral formulations of CpG-ODN for administration to infants.