Drinking plenty of water to promote urination is the best way to prevent the recurrence of pyelonephritis. In addition, you should pay attention to perineal cleanliness in your daily life, such as washing your perineum daily and promptly urinating and washing your perineum after sex. These habits can help reduce the flora around the urethra and reduce the likelihood of infection.