Some spasms can be avoided or alleviated with proper hydration, vitamin or mineral supplements, and light activities that relax the muscles (never take any medication or supplement without first consulting a doctor). Since spasms may indicate an underlying medical condition, those suffering from any type of muscle spasm should immediately contact a doctor or healthcare professional.