Sexual activity is a significant risk factor for recurrent UTIs. Sexual intercourse can introduce bacteria into the urinary tract, and certain contraceptives, such as spermicides and diaphragms, can further increase this risk. It is essential for sexually active women to urinate before and after intercourse to help flush out any bacteria.