The research presented here suggests that naturally occurring mutations in TET2 are a major risk factor for bacterial pneumonia, driven by myeloid immune cell dysfunction. Here, TET2 is linked to bacterial pneumonia.