IPR activation precedes mitochondrial fragmentation, which promotes defense against microsporidia infection. Here, PRPS1 is linked to microsporidiosis.