Kenya's High Court has dismissed a bid by a Rastafarian group seeking to legalise the use of cannabis for religious purposes.
The Rastafarian community had argued that the ban on smoking cannabis infringed on their rights to freedom of religion and belief guaranteed under the constitution.
In a landmark judgement, Justice Bahati Mwamuye said the community had failed to prove drug laws violated their constitutional rights, but acknowledged the need for a broader national debate on cannabis.
There has been a continued push to legalise cannabis in Kenya, with advocates arguing that its regulated cultivation and trade could create jobs, boost tax revenue and support industrial and medicinal uses.
Under Kenya's Narcotic Drugs and Psychotropic Substances (Control) Act, possession of cannabis remains a criminal offence.
A person convicted of possessing cannabis solely for personal use is liable to up to five years' imprisonment or a fine of up to $800 (£600).
Cultivating cannabis carries a penalty of a fine of $1,900 or three times the market value of the plants, whichever is greater, and/or up to 20 years in jail.
More severe penalties apply to trafficking and other drug-related offences.
In their petition, the Rastafari Society of Kenya had argued that cannabis was a sacred sacrament in their faith and sought permission for followers to grow, possess and use it privately during worship without fear of arrest.
It maintained it was not asking for the wholesale legalisation of cannabis, but a limited exemption for religious purposes in private homes and designated places of worship.
In their submission, the Rastafarians argued that smoking cannabis was part of their religious doctrine which must be respected and upheld.
But the state opposed their plea, arguing that creating a religious exemption would undermine the enforcement of Kenya's anti-drug laws and could create loopholes for illegal cannabis trafficking.
Justice Mwamuye also found that the evidence presented on the centrality of cannabis to the Rastafari faith was inconsistent and insufficient to establish that its use was an essential element of the religion.
He upheld the constitutionality of the drug laws prohibiting the cultivation, possession and use of cannabis, dealing a major blow to the Rastafarians' six-year legal battle.
The judge noted that any exemption permitting the use of cannabis for religious purposes would require a sound constitutional and legal foundation.
"We ought to have frank conversations on cannabis and which directions we should take," Justice Mwamuye said.
"This is not a question for the Rastafarian community only. It is a national question that cuts across the entire spectrum of our society," he added.
The community's lawyer Danstan Omari said they would appeal against the court ruling.
"Kenya cannot be the only country that is harassing the Rastafarian people. We are determined to reverse that [court's ruling] and bring back the dignity and respect of the Rastafarians in Kenya," he said.
The judgment comes seven years after another High Court ruling recognised Rastafarianism as a protected religion in Kenya, finding that a school's decision to expel a student over her dreadlocks violated her constitutional rights.
The number of Rastafarians in Kenya is unknown, but the movement is thought to be growing, especially among young people.
Their tradition of wearing dreadlocks also resonates with Kenya's anti-colonial history as many of the Mau Mau fighters who resisted British rule in the 1950s wore their hair long and matted as a symbol of defiance.
Go to BBCAfrica.com for more news from the African continent.
Follow us on Twitter @BBCAfrica , on Facebook at BBC Africa or on Instagram at bbcafrica