Pyelonephritis is a serious kidney infection. If not treated, it can hurt the kidneys. Bacteria usually cause it. This bacteria comes from the urethra or bladder.