Loss of pnp-1 leads to altered levels of purine nucleotide precursors and increased expression of Intracellular Pathogen Response genes, which are induced by viral and fungal intracellular pathogens of C. elegans. In addition, we find that loss of pnp-1 increases resistance to extracellular pathogen infection and increases expression of genes involved in extracellular pathogen defense. This evidence concerns the gene PTPN13 and infection.