We found that GPNMB blocked the assembly of the STX17-SNAP29-VAMP8 SNARE complex, thereby inhibiting autophagosome maturation during bacterial infection. Here, GPNMB is linked to bacterial infectious disease.