If it is painful, when you urinate, you may have a urinary tract infection. This is caused by bacteria in your bladder. It could also be caused by a virus. Pain on urination can also be secondary to something called interstitial cystitis. This is an inflammatory condition of the bladder, which is not caused by an infection. It is treatable by a urologist.