Hydronephrosis is swelling of one or both kidneys. Kidney swelling happens when urine can't drain from a kidney and builds up in the kidney as a result. This can occur from a blockage in the tubes that drain urine from the kidneys (ureters) or from an anatomical defect that doesn't allow urine to drain properly.