Kidney stones are crystals formed from waste substances. Most people simply pass small crystals in their urine. However, if crystals are left behind in the kidneys, kidney stones can form. If these get stuck in the ureter, they can be painful. Kidney stones can be caused by factors including insufficient drinking, excessive sweating, high protein intake and urinary tract infections.