Pyelonephritis is an infection of one or both kidneys. It often starts as urinary tract infection or UTI.