Bacteria that enter your urinary tract through the tube that carries urine from your body (urethra) can multiply and travel to your kidneys. This is the most common cause of kidney infections.
Bacteria from an infection elsewhere in your body also can spread through your bloodstream to your kidneys. Although it's unusual to develop a kidney infection, it can happen â for instance, if you have an artificial joint or heart valve that becomes infected.
Rarely, kidney infection results after kidney surgery.