The commonest cause of hydronephrosis is a stone in the ureter or pelvis of the kidney. However, occasionally the obstruction may be due to a defect at the pelviureteric junction and stone may be secondarily formed. In these cases, it is insufficient to remove the stone unless the primary defect is corrected at the same time.