Write the cause of the formation of kidney stones.

Kidney stones form due to the crystallization of minerals and salts (such as calcium, oxalate, and uric acid) in the urine. Dehydration, excessive salt intake, and metabolic disorders increase the risk of stone formation.