In human macrophages and a mouse infection model, the loss of Gpnmb increased host resistance to bacterial infection. Here, GPNMB is linked to infection.