A pharmaceutical composition or dietary supplement having a muscle-relaxant and anti-inflammatory activity is described, which is effective in the treatment of muscle, bone, articular and tendon pathologies, comprising, as active ingredients, a combination of magnesium, at least one ketoboswellic acid and L-tryptophan.