These findings show that antibody class-switching and urinary IgA are each an immunological correlate of protection against UTI caused by E. coli. Here, CD79A is linked to bacterial urinary tract infection.