Pyelonephritis is a type of urinary tract infection, or UTI, that affects the kidneys. It is also known as a kidney infection or renal infection. Pyelonephritis can affect one or both kidneys.