For most sexually transmitted infections the answer is yes, repeatedly, and having had one confers no useful protection against getting it again. This surprises people who expect the immune system to remember an infection the way it remembers chickenpox, and it is the reason someone can be treated for gonorrhoea three times in a year without anything unusual having gone wrong.
Why do bacterial infections leave no immunity?
Gonorrhoea is the clearest example. The bacterium varies the proteins on its surface constantly, so the antibodies your body produces against one infection do not recognise the next. It also actively interferes with the immune response in ways that prevent lasting memory forming. The practical result is that you can catch gonorrhoea from a partner one week and from the same partner again a month later. Chlamydia behaves similarly, and reinfection within a year of treatment is common enough that UK services routinely suggest retesting at three months.
What about syphilis?
You can get syphilis again after successful treatment, and reinfection is not unusual. This complicates the blood tests, because the treponemal antibody test stays positive for life once you have had it. Confirming reinfection relies on watching the non-treponemal titre rise again rather than on a simple positive or negative, which is why syphilis results are usually discussed with a clinician rather than texted.
Which infections do you only get once?
Hepatitis A produces lifelong immunity after infection and does not become chronic. Hepatitis B usually does the same in adults who clear it, though a minority develop chronic infection instead. Those two are the exceptions rather than the pattern.
What about hepatitis C?
Being cured of hepatitis C does not protect you from catching it again, and reinfection after successful treatment is well documented, particularly where injecting or fisting is involved. Cure is genuine and worth having, but it resets you to susceptible rather than immune.
What about the viruses that stay?
Herpes and HIV work differently again. Neither is cleared, so the question of reinfection does not arise in the same way. Herpes remains latent in nerve tissue and reactivates, which is recurrence rather than a new infection, and it is not treatment failure. HIV persists for life on treatment, suppressed rather than eliminated. HPV is more complicated: most infections clear, and clearing one type gives some protection against that type but none against the other high-risk types, which is the argument for vaccination even after exposure.
Why does this matter practically?
Two reasons. First, a past infection is not a reason to test less often, and people occasionally reason the opposite way. Second, most repeat infections are reinfection from an untreated partner rather than treatment failure, so partner notification is doing more work than an extra antibiotic course would. If you and a regular partner keep passing something back and forth, you both need treating and both need to avoid sex until seven days after finishing.
Can vaccination fill the gap?
Partly. Hepatitis A and B are prevented by vaccination, which is more reliable than natural immunity and does not require getting ill first. HPV is prevented by vaccination against the nine most consequential strains. The meningococcal B vaccine offers partial protection against gonorrhoea, roughly a third by current estimates, which is worth having but is not immunity. There is no vaccine for chlamydia, syphilis, herpes, hepatitis C or HIV.
What actually reduces repeat infections?
Three-monthly screening at every site, so infections are found and treated before they circulate. Partner notification, which clinics will do anonymously. Vaccination for everything a vaccine exists for. Doxy-PEP where your service offers it, which reduces bacterial infections substantially in the studies conducted so far. None of these depend on immunity, because for most of these infections there is not any.
Does repeated infection cause cumulative damage?
For some infections, yes. Repeated episodes of untreated gonorrhoea or chlamydia can lead to epididymitis and scarring, and repeated inflammation of the rectal lining increases the chance of acquiring HIV during receptive anal sex. Repeated syphilis infections each carry their own risk of affecting the eyes, ears and nervous system. This is an argument for finding infections quickly rather than for feeling bad about having had several.
Is frequent reinfection a sign you are doing something wrong?
Not in itself. It reflects the rate of infection in the network you have sex in rather than any individual failing, and clinics treat it as a reason to offer more prevention rather than a lecture.