Hydronephrosis is a condition characterized by the dilation or swelling of the renal pelvis and calyces of the kidney due to the accumulation of urine. This occurs when there is an obstruction in the urinary tract that prevents urine from draining properly from the kidney to the bladder.