Urinary tract infections (UTIs) are most often caused by bacteria that invade the urinary tract. The bacteria may come from outside the body. Or they may travel from the skin outside of the rectum into the urethra. Pain in or around the urinary tract is a common symptom for most UTIs. Other symptoms of a UTI may include pain when peeing, blood in the pee, flank or groin pain, chills and a fever, and nausea and vomiting. The only way to know for sure if you have a UTI is to have a urinalysis and urine culture.