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 is only scheduled under the Single Convention and was reclassified in 2020 to a Schedule I-only drug (from being both 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. and may be able to regulate non-medical cannabis industry under its Article 2 paragraph 9.
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, Germany, Luxembourg, Malta, South Africa, 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 two countries (Canada 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.