NEC lesions did not affect total microglial cell number but markedly increased the proportion of Iba1-positive amoeboid microglial cells. Here, AIF1 is linked to necrotizing enterocolitis.