The body uses food for energy and tissue repair. After the body uses what it needs, waste products in the bloodstream are carried to the kidneys and subsequently excreted as urine. Kidney stones typically form when your urine contains more crystal-forming substances than what the fluid in your urine can dilute.