Pyelonephritis is a type of urinary tract infection (UTI) that affects the kidneys. It usually begins as a lower urinary tract infection and ascends to the kidney. In terms of histology, it involves inflammation of the kidney parenchyma, calyces, and pelvis.