The Mexican Supreme Court opened the door to legalizing marijuana on Wednesday, delivering a pointed challenge to the nation’s strict substance abuse laws and adding its weight to the growing debate in Latin America over the costs and consequences of the war against drugs.

The vote by the court’s criminal chamber declared that individuals should have the right to grow and distribute marijuana for their personal use. While the ruling does not strike down current drug laws, it lays the groundwork for a wave of legal actions that could ultimately rewrite them, proponents of legalization say.

The decision reflects a changing dynamic in Mexico, where for decades the American-backed antidrug campaign has produced much upheaval but few lasting victories. Today, the flow of drugs to the United States continues, along with the political corruption it fuels in Mexico. The country, dispirited by the ceaseless campaign against traffickers, remains engulfed in violence.

“It’s the drama behind all of our efforts,” said Juan Francisco Torres Landa, a corporate lawyer who was one of the plaintiffs in the Supreme Court case.