At the Miami-Dade state attorney’s office, Julian Stroleny and Christopher Pagan routinely sent marijuana growers and those in possession of pot to jail—and wrestled with their guilt at night.

Now, the 29-year-old lawyers will be helping the same people they once prosecuted in their new private law practice, consulting with medical marijuana growers and entrepreneurs.