The main cause of a urinary tract infection is a bacterium called E. coli, which is responsible for roughly 85% of UTIs acquired outside of a hospital. This gut bacterium migrates from the intestinal tract to the urinary system, where it latches onto the bladder lining and triggers an infection. While other factors raise or lower your risk, the fundamental mechanism is nearly always the same: bacteria that belong in your gut end up somewhere they don’t.
How E. Coli Reaches the Bladder
A UTI develops in stages. First, E. coli from the intestines contaminates the skin around the urethral opening. From there, the bacteria colonize the urethra and begin climbing toward the bladder using tiny hair-like structures called pili and whip-like tails called flagella that let them swim against the flow of urine. Once inside the bladder, they attach to and invade the cells lining the bladder wall, establishing an infection that your immune system now has to fight.
If the infection isn’t cleared, the bacteria can continue ascending through the ureters (the tubes connecting the bladder to the kidneys) and reach the kidneys. A kidney infection, called pyelonephritis, is more serious and often causes fever, back pain, and nausea on top of the typical burning and urgency of a bladder infection.
Why Women Get UTIs Far More Often
Anatomy is the single biggest reason women develop UTIs at dramatically higher rates than men. The female urethra is only 3 to 4 centimeters long, while the male urethra stretches 18 to 20 centimeters. That short distance gives bacteria a much easier path to the bladder. On top of that, the female urethral opening sits close to both the vaginal opening and the anus, two areas that naturally harbor large numbers of microbes. Nearly half of all women who get a UTI will experience at least one recurrence.
Sexual Activity and Mechanical Introduction
Sexual intercourse is one of the most well-established behavioral triggers for UTIs in women, sometimes called “honeymoon cystitis.” The mechanical motion during sex can push bacteria from the surrounding skin into the urethra. Research suggests it takes roughly two days after bacterial introduction for E. coli to bind to tissue, ascend into the urinary tract, establish itself, and provoke an inflammatory response you’d recognize as symptoms. Women who notice a pattern of infections tied to sexual activity are sometimes offered a single dose of antibiotics to take after intercourse as prevention.
Hormonal Changes After Menopause
Estrogen plays a surprisingly important protective role in the urinary tract. In premenopausal women, estrogen supports colonies of beneficial Lactobacillus bacteria in the vaginal and urinary microbiome. These bacteria produce acids, including one called phenyl-lactic acid, that directly kill uropathogens like E. coli. Research has found a strong inverse relationship between estrogen levels and E. coli colonization: higher estrogen correlates with more Lactobacillus and less E. coli.
After menopause, estrogen levels drop and Lactobacillus populations decline with them. The vaginal environment becomes less acidic, making it easier for harmful bacteria to take hold. This is a major reason UTIs become more frequent in postmenopausal women. Vaginal estrogen therapy is increasingly used to restore that protective Lactobacillus environment and reduce recurrent infections.
Diabetes and Other Medical Risk Factors
Diabetes increases UTI risk through multiple pathways. Poor blood sugar control leads to excess glucose spilling into the urine, and lab studies show that urine with glucose concentrations matching moderate to severe levels significantly boosts bacterial growth within just six hours. Diabetes also damages nerves over time, including those controlling the bladder. This nerve damage can prevent the bladder from emptying completely, leaving behind a pool of urine where bacteria can multiply undisturbed.
Other conditions that interfere with normal urine flow raise risk in a similar way. Kidney stones, an enlarged prostate, or any structural abnormality that causes urine to stagnate gives bacteria more time to establish an infection. Catheter use is another major contributor, particularly in hospitals, where E. coli accounts for about 50% of UTIs rather than the 85% seen in the community. Hospital-acquired infections are more likely to involve other organisms.
Other Bacteria That Cause UTIs
While E. coli dominates, the remaining 15 to 50% of infections (depending on the setting) are caused by other pathogens. The most common include Klebsiella species, Proteus species, Enterococcus, and Pseudomonas aeruginosa. These organisms tend to show up more often in people with catheters, structural urinary tract problems, or recent antibiotic use that has disrupted the normal bacterial balance. They can also be harder to treat because some carry higher rates of antibiotic resistance. If a standard course of antibiotics doesn’t resolve your symptoms, your doctor may order a urine culture to identify the specific bacterium involved and match it to an effective antibiotic.
Why Some People Get Recurring Infections
Recurrent UTIs, typically defined as two or more infections in six months or three or more in a year, aren’t just bad luck. They often reflect an underlying pattern. In younger women, that pattern frequently involves sexual activity or spermicide use, which can disrupt the normal vaginal microbiome. In postmenopausal women, estrogen depletion and the resulting loss of protective bacteria are usually central. In people with diabetes or urinary retention, the problem is a bladder environment that consistently favors bacterial growth.
Your urinary microbiome matters more than previously understood. The balance between protective species like Lactobacillus and harmful species like E. coli is not static. It shifts with hormonal changes, antibiotic exposure, and other health conditions. Maintaining that balance, whether through estrogen therapy, behavioral changes, or managing underlying conditions like diabetes, is increasingly recognized as central to preventing infections rather than simply treating them after they appear.

