Tips for preventing UTIs?

Abby
I've had two now, and it's pretty irritating. I don't really understand why I get them. My boyfriend and I use latex condoms, so is it just maybe caused from irritation?