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