Hydronephrosis is a condition that typically occurs when the kidney swells due to the failure of normal drainage of urine from the kidney to the bladder. This swelling most commonly affects only one kidney, but it can involve both kidneys.