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 cause a build-up of metabolites that cannot be excreted in time, which in turn cause a large build-up of metabolites that irritate the muscles and cause them to spasm, accompanied by pain.