In many cases, state firearms laws can be considerably less restrictive than federal firearms laws. This does not confer any de jure immunity against prosecution for violations of the federal laws. However, state and local police departments are not legally obligated to enforce federal gun law as per the U.S. Supreme Court's ruling in Printz v. United States.