Even after you've been treated, you can still be infected again. This is a common problem. It can happen if a partner passes the STI back to you. To prevent this, any partners you have must be tested. They may also need treatment. After treatment, go to any scheduled follow-up visits. Then prevent future problems by practicing safer sex. Limit your number of partners. And always use a latex condom.
Remember that HIV is also an STI. If you have one type of STI, you can get others, including HIV. Ask your healthcare provider if you should take medicine to prevent getting HIV. This can be taken before the risk of exposure (PrEP or pre-exposure prophylaxis). Or it can be taken within 72 hours after unsafe sex (PEP or post-exposure prophylaxis).