CBD while not psychoactive, interacts with various receptors in the body that can reduce inflammation and interact with neurotransmitter function, potentially reducing pain. CBD might also enhance the effects of THC, allowing for pain relief with potentially lower doses of THC, thus reducing psychoactive effects.
THC acts on the brain's cannabinoid receptors, which can reduce the perception of pain. It's known for its psychoactive effects, which might also contribute to a change in pain perception by altering mood and cognition.