This isn’t a great time for small Canadian mining businesses. For the past couple of years, people have worried that China’s economic problems will keep it from buying metals and minerals in big quantities, as it once did, which has lowered prices for some of those commodities. Plus, mine workers are aging and retiring, and there may not be enough younger people to replace them. The combined value of the hundred largest “junior” mining companies—the small ones focussed on exploring deposits, in contrast to “major” companies, which extract the deposits that juniors have analyzed—fell by forty-four per cent last year. As Winston Churchill said, “To improve is to change.” So a couple dozen mining companies are now trying out a sexier business: weed.

Canada started granting its first commercial permits to grow marijuana for medicinal purposes late last year. Since then, at least thirty junior mining enterprises have started diversifying into medical marijuana—“M.M.J.,” for short—or have announced plans to do so.

“As a publicly traded company, we always need a story that’s good enough to raise money on,” Jennifer Boyle, the C.E.O. of Satori Resources Inc., told me. Satori is—or has been, in any case—a gold-mining company. Now Boyle wants to get into pot. “If you can latch on to something you can probably raise money on, i.e., medical marijuana, then why not?” she said. “Because otherwise, your assets are in danger of being bought for next to nothing.”

The fact that exploratory mining and growing marijuana have little in common is, it seems, hardly important. The Papuan Precious Metals Corp.’s stock price rose from two cents to fourteen cents after it announced plans to consider agricultural projects and then hired a marijuana consultant. This month, Papuan agreed to acquire the assets of a pot dispensary in Colorado, where marijuana is now legal for anyone who is twenty-one or older. Other junior companies are experimenting with growing mediums and fertilizers, or looking to provide equipment to growers. “The reason you’re seeing the junior mining companies going to medical marijuana is because there is no money in mining,” Greg Downey, the C.F.O. of Papuan, said. “We look to where the money is going.”

The junior mining companies experimenting with marijuana are not high up in the hierarchy of mining. At the bottom level, there are prospectors, who walk hillsides and fields, kicking rocks in search of minerals and metals. One step up are the juniors: they follow up on prospectors’ finds by conducting more serious studies and sometimes even developing mining sites, with the goal of one day selling their assets to a major mining corporation. Most of the juniors that are turning to pot have market capitalizations of five million dollars or less; they represent only about one per cent of Canada’s estimated three thousand two hundred mining firms.

Major mining companies have had trouble raising capital because of falling commodities prices and a tendency toward cost overruns, which has made it even more difficult for juniors to raise money for their projects, since chances of a buyout are remote. It hasn’t helped that junior mining projects keep failing. There is also an impending labor crisis: in the next ten years, the mining industry will need to replace more than half of its workforce, as current employees retire or depart for more attractive industries. This is problematic both because companies will have to cover those former workers’ retirement benefits and because not many young people choose mining as their profession these days, according to a report by the Canadian government’s Mining Industry Human Resources Council.

The marijuana business isn’t necessarily a panacea. Marijuana remains illegal in Canada, although, since 2001, the federal regulatory agency Health Canada has let residents with a doctor’s authorization possess the plant for personal use. It also granted tens of thousands of permits to grow the drug for personal use or to grow it for someone else’s personal use. Last year, Health Canada became convinced that marijuana was being abused for recreational purposes, announced a repeal of the old growing permits, and started accepting applications for commercial-growing permits instead. (A court injunction put the repeal on hold for the moment, but Health Canada has issued thirteen of the commercial permits. It hasn’t put a cap on how many commercial permits it will grant, but it has said that it has received more than nine hundred applications.) Wagner, the consultant, said that only forty thousand Canadians or so have medical-marijuana prescriptions, a level of demand that a couple hundred growers could easily meet; even if the number of people with prescriptions grows to more than four hundred thousand by 2024, as Health Canada is forecasting, he predicts that this would create only enough customers for an additional several hundred growers. So far, none of the mining companies have been granted a commercial-growing license, although one former mining company is close to merging with a company that owns a license. Many are applying for a license or conducting medical-marijuana due diligence.

Executives at the junior mining companies gave various reasons for why they are well suited to enter the marijuana industry: Downey said that juniors are already publicly listed and therefore have immediate access to capital. Another said that his skill set is in assembling teams, whether it is geologists or pot growers. Boyle, the C.E.O. of Satori Resources Inc., pointed out that her company already has the ticker BUD, which gives it a natural leg up; even now, investors assume that the company is in the marijuana business.

Michael Dehn, the C.E.O. of Jourdan Resources Co., said that he wound up in the marijuana business by happenstance. His company owns several properties in Quebec that it wants to mine for phosphates, a component of fertilizer. It also leases office space in a strip mall in a Toronto suburb, next to a pot grower called ChroniCare Canada Corp. “One day, I was out in the parking lot talking to the guy next door, and I said to him, ‘What do you do?’ ” Dehn recalled. “He said, ‘We grow marijuana,’ and I said, ‘We make fertilizer. We should work together.’ ”

Jourdan and Satori Resources have joined together to excavate and pulverize a small amount of phosphate rock, and they’re partnering with ChroniCare to test whether it could be used to fertilize pot. If it works, the companies would together start selling fertilizer to pot growers.

“We were always going to do fertilizer, and our plan was to target corn or wheat, but we’re still five years away from that, so in the meantime we’ll receive a cash flow,” Dehn explained.

The Canadian market, however, is small. With only thirty-five million people in the country, Dehn and others said that they are thinking about export opportunities. “You kind of look at this as the prohibition period, like when Canada was smuggling alcohol to the U.S.,” he said. Dehn has never smoked pot, but he has heard good things about Canadian-grown marijuana. “For most of my life, this is where you heard the good weed was,” he said. “It’s like France—that’s where you go for champagne.”

Gabe Friedman writes about legal affairs, the environment, and business. He was a Knight-Bagehot Fellow at Columbia University and lives in New York.

Illustration by Dadu Shin.