•GM-CSF-induced macrophages are protective during infection but drive inflammatory colitis. Here, CSF2 is linked to infection.