Muscle soreness is pain that occurs after overexertion during sports or other physical activities. It is caused by tiny tears in the muscle fibers, which usually result from unaccustomed movement patterns. An optimal magnesium level helps to reduce damage to the muscles and can thus reduce muscle soreness after exercise.