A South African court legalized on Tuesday private marijuana use by adults, the BBC reports.

Judges at the country’s Constitutional Court unanimously decided that growing the drug for private use will be legal.

Activists who pushed for the decision cheered and chanted “Weed are free now.”

The South African government has reportedly been against measures aimed at legalizing weed, claiming it is dangerous.

“It will not be a criminal offense for an adult person to use or be in possession of cannabis in private for his or her personal consumption,” Deputy Chief Justice Raymond Zondo said in his ruling.

Three marijuana users brought the case to the nation’s highest court because they faced prosecution. They said the ban “intrudes unjustifiably into their private spheres,” according to the BBC.

The Cannabis Development Council of South Africa urged the government to dismiss charges against people who were caught with the drug.

Use of marijuana, or “dagga” as it is commonly referred to in South Africa, remains illegal in public spaces.