Described herein are compositions for topical use comprising active agents to provide pain relief. The compositions comprise a magnesium salt, a cannabinoid and at least one additional topical analgesic agent. Additionally described herein are methods for treating pain comprising administering to a person in need thereof a composition comprising a pharmaceutically effective amount of a cannabinoid, a magnesium salt and at least one of: methyl salicylate, and menthol.