Cocaine is illegal in most countries.
However a few countries have legalised the use of cocaine.
In Mexico, the legislature officially legalised small doses of cocaine, heroin, marijuana, and ecstasy for personal use. No action will be taken for those carrying up to half a gram of cocaine.
In Colombia, the possession of 1 gram of cocaine for personal use is legal, however the sale of the drug is illegal.