Cannabis contains various compounds, including cannabinoids and terpenes, which have been shown to have therapeutic properties. One of the cannabinoids found in cannabis, tetrahydrocannabinol (THC), has been found to have pain-relieving properties, including for headaches.
THC works by binding to the cannabinoid receptors in the brain and nervous system, which can help to reduce the pain and inflammation associated with headaches. In addition, THC has been found to have muscle-relaxant properties, which can also help to ease the tension that often accompanies headaches.
Some strains of cannabis also contain high levels of a terpene called beta-caryophyllene, which has been found to have anti-inflammatory properties and may also help to relieve headaches.
It's worth noting that while cannabis may be effective for some people in treating headaches, it is not necessarily a cure-all solution, and it may not work for everyone. As with any treatment, it's important to talk to a healthcare provider before trying cannabis for headaches, especially if you have any underlying medical conditions or are taking other medications.