A urinary tract infection occurs when bacteria enter the urinary tract, infecting parts like the urethra, bladder, and sometimes kidneys. Common symptoms include burning during urination and frequent urination. Escherichia coli is the most common cause. Treatment involves antibiotics like trimethoprim/sulfamethoxazole. Preventive measures include drinking cranberry juice and good hygiene after sex.