During marathon, we sometimes get painful contractions of leg muscles due to the accumulation of one of the following in leg muscles. This is :

During vigorous physical exercise, anaerobic respiration takes place in human muscles because oxygen is used faster in the muscles compared to its supply by the blood. Thus, sudden buildup of lactic acid poison our muscles and cause muscular cramps.

71