Kidney infection (pyelonephritis) is a type of urinary tract infection (UTI) that generally begins in your urethra or bladder and travels to one or both of your kidneys. A kidney infection requires prompt medical attention.