This study shows that intravaginal treatment of gonococcal infection in female mice with microencapsulated IL-12 induces persisting anamnestic immunity against reinfection with N. gonorrhoeae, even of antigenically diverse strains, dependent on T-cell production of IFN-γ and B-cell production of antibodies. This evidence concerns the gene IFNG and bacterial sexually transmitted disease.