Medical marijuana has been legal in Pennsylvania since 2016, but to the federal government it's been illegal for the better part of a century.
States pushed back against federal law throughout the years, and in 1996 California passed a proposition allowing medical marijuana use in some cases. That ruling put the state at odds with federal law, though the federal government largely was inactive on the issue.