What causes cramps in the soles of the feet?

Most cases of foot cramps are caused by prolonged walking or prolonged exercise. These causes slow down the blood circulation in the soles of the feet, and the metabolites are not discharged in time and accumulate, which in turn cause a large amount of accumulated metabolites to stimulate the muscles and cause them to spasm, along with pain.