Medical Marijuana may lead to fewer drug overdoses, according to a recent study.

Researchers found that after states that have legalized medical marijuana deaths associated with the use of opiate drugs decreased dramatically. They argue that states that have decriminalized medical marijuana saw nearly a 25 percent decline in overdose deaths from opiates and similar painkillers between 1999 and 2010, News-press.com reported.

Investigators believe people suffering from chronic pains tend to rely on medical marijuana when they have that option, which reduces the risk of addiction and overdose that accompanies use of prescription pain medication.

"We think that people with chronic pain may be choosing to treat their pain with marijuana rather than with prescription painkillers, in states where this is legal," Dr. Marcus Bachhuber, lead author of the study and a researcher with the Center for Health Equity Research and Promotion at the Philadelphia Veterans Affairs Medical Center, told HealthDay.

For the study, researchers collected and analyzed data from the U.S. Centers for Disease Control and Prevention (CDC) to determine the narcotic medication overdose death rate for each state between 1999 and 2010, and then took into account whether and when each state had passed a medical marijuana law.

According to the CDC, overdose deaths from prescription painkillers have skyrocketed over the past two decades, increasing 118 percent between 1999 and 2011.

Although overdose deaths have risen in all states, researchers found that the annual average number of deaths caused by painkillers is nearly 25 percent less in states with medical marijuana laws.

"In absolute terms, states with a medical marijuana law had about 1,700 fewer opioid painkiller overdose deaths in 2010 than would be expected based on trends before the laws were passed," Bachhuber said.

Researchers said further investigation is required to determine how medical cannabis laws may interact with policies aimed at preventing opioid analgesic overdose.

The findings were recently published in the Journal of the American Medical Association's publication Internal Medicine.