If you have a urinary tract infection, it is generally recommended to temporarily prohibit sexual intercourse to avoid the possibility of transmission through sexual intercourse. When a urinary tract infection occurs, there is a large amount of bacteria in the urethra or around the urethral opening, which can easily spread to the other party during sex, causing the other party to become infected and develop a urethritis or vaginitis in women. When a urinary tract infection occurs, the body’s resistance is reduced, and in this case, if you have sex more frequently, it may lead to more weakness, which may aggravate the urinary tract infection, or make the symptoms recur, affecting the recovery of the disease. If you really want to have sex, you can take effective protective measures, such as bringing a condom, cleaning well in advance, and then right after sex, but also timely flushing disinfection. If you have a urinary tract infection after intercourse, you should promptly undergo standardized anti-infection treatment, and both partners should be treated at the same time, and at the same time, you should pay attention to strengthening nutrition and eating more protein and vitamin-rich food. In conclusion, it is not advisable to have sex when there is a urinary tract infection, but to standardize the treatment, strengthen the immunity, and have sex after the condition has recovered.