What causes most women's urinary tract infections?

Intercourse. Many urinary tract infections in women occur after sex because the vaginal and rectal areas are so close to the urethra where women urinate from. Sex allows bacteria from these close areas to be spread toward the urethra. Urinating immediately after sex can decrease the number of infections. If they are still frequent, sometimes doctors will prescribe a medicine to take each time after sex.