Normally, the kidneys remove waste from the blood to produce urine (pee). When there is too much waste in the blood and the body does not produce enough urine, crystals begin to form in the kidneys. These crystals attract other debris and chemicals. form a solid object (a kidney stone) that increases in size unless it is passed out of the body through the urine.