What causes you to get a charley horse?

Exertion, 'lytes. Charley horse is another term for muscle cramp. It has many possible causes, and can often be caused by intense or prolonged muscle activity. Charley horses are more likely to occur when a person is dehydrated or deficient in certain electrolytes such as potassium, calcium, or magnesium.