Hydronephrosis is the swelling of a kidney due to a build-up of urine. It happens when urine cannot drain out from the kidney to the bladder from a blockage or obstruction. Hydronephrosis can occur in one or both kidneys.