A pyelonephritis is an infection of the kidneys that can be very painful and potentially serious. It is a type of urinary tract infection that can spread to the kidneys and cause a range of symptoms, including pain in the side or back, fever, and difficulty urinating.