Although USP12 activated CD4+ T cell responses against bacterial infections, it also promoted autoimmune disease development. Here, USP12 is linked to bacterial infectious disease.