Urinal tract infection?

I get this horrible burn when I piss (I know, TMI). I go to the doctors and they say it's a water infection and they give me antibiotics. They work but the infection always comes back. It's beginning to really bug me because I get one every other month or more. Does anyone know why I get so many and how I can stop them?