To get concentrated urine alot of water needs to be readsorbed. So ADH (anti diuretic hormone) is released from the pituitary gland and binds onto the collecting wall and makes the wall more permeable to water so more water is readsorbed into the blood.
To get dilute urine not as high levels of water is readsorbed so lots of water stays in the collecting duct and is excreted