Legality of cannabis

[[File:Map-of-world-cannabis-laws.svg|thumb|400px|alt=Map of world cannabis laws for non-medical use| Legal status of cannabis possession for recreational use

{{legend|#0d00f2|Legal}} {{legend|#ffb700|Illegal but decriminalized}} {{legend|#ff9e9e|Illegal but often unenforced}} {{legend|#ff3c3c|Illegal}} {{legend|#b8b8b8|Legality unknown}}]]

The legality of cannabis for medical and recreational use varies by country, in terms of its possession, distribution, and cultivation, and (in regards to medical) how it can be consumed and what medical conditions it can be used for. These policies in most countries are regulated by three United Nations treaties: the 1961 Single Convention on Narcotic Drugs, the 1971 Convention on Psychotropic Substances, and the 1988 Convention Against Illicit Traffic in Narcotic Drugs and Psychotropic Substances. Cannabis was reclassified in 2020 to a Schedule I-only drug under the Single Convention treaty (from being a Schedule I and IV drug previously), with the schedules from strictest to least being IV, I, II, and III. As a Schedule I drug under the treaty, countries can allow the medical use of cannabis but it is considered to be an addictive drug with a serious risk of abuse.

The use of cannabis for recreational purposes is prohibited in most countries; however, many have adopted a policy of decriminalization to make simple possession a non-criminal offense (often similar to a minor traffic violation). Others have much more severe penalties such as some Middle Eastern and Far Eastern countries where possession of even small amounts is punished by imprisonment for several years. Countries that have legalized recreational use of cannabis are Canada, Georgia, Germany, Luxembourg, Malta, Mexico, South Africa, Thailand, and Uruguay, plus 24 states, 3 territories, and the District of Columbia in the United States and the Australian Capital Territory in Australia. Commercial sale of recreational cannabis is legalized nationwide in three countries (Canada, Thailand, and Uruguay) and in all subnational U.S. jurisdictions that have legalized possession except Virginia and Washington, D.C. A policy of limited enforcement has also been adopted in many countries, in particular the Netherlands where the sale of cannabis is tolerated at licensed coffeeshops.

Countries that have legalized medical use of cannabis include Albania, Argentina, Australia, Barbados, Brazil, Canada, Chile, Colombia, Costa Rica, Croatia, Cyprus, Czech Republic, Denmark, Ecuador, Finland, Georgia, Germany, Greece, Ireland, Israel, Italy, Jamaica, Lebanon, Luxembourg, Malawi, Malta, Mexico, the Netherlands, New Zealand, North Macedonia, Norway, Panama, Peru, Poland, Portugal, Rwanda, Saint Vincent and the Grenadines, San Marino, South Africa, Spain, Sri Lanka, Switzerland, Thailand, Ukraine, the United Kingdom, Uruguay, Vanuatu, Zambia, and Zimbabwe. Others have more restrictive laws that allow only the use of certain cannabis-derived pharmaceuticals, such as Sativex, Marinol, or Epidiolex. In the United States, 38 states, 4 territories, and the District of Columbia have legalized the medical use of cannabis, but at the federal level its use remains prohibited.