Cramps are painful spasms that mainly affect muscles in the legs and feet. A cramp generally lasts a few minutes and then ends on its own, although massage and stretching can hasten the process, and certain foods may help to prevent its recurrence. Read on to learn more.