What causes cramp?

Cramp is a painful spasm of muscle often caused by the deficiency of oxygen in it. When we exercise rigorously, the supply of oxygen starts running out. The energy required by the muscle in normal circumstances is provided by respiration, wherein the sugar is broken down using oxygen with the releaze of carbon dioxide, water and energy.

But when there is lack of oxygen, the energy supplied to the muscle is provided by breaking down sugar into lactic acid. This lactic acid in the muscle causes the cramp.

Kipkis.com-what-causes-cramp.jpg