Pyelonephritis is an infection of the kidney and the ducts that carry urine away from the kidney (ureters).