In 2008 the United States Supreme Court ruled that the 2nd Amendment to the United States Constitution:
Yet, the Court, not going beyond the scope of the question posed, did not have anything to say regarding whether or not the 2nd Amendment trumps state and local gun laws. However:
The Supreme Court will consider two new cases on the scope of individuals’ Second Amendment right to have guns at its first Conference for the new Term, on Sept. 29, according to the Court’s electronic docket. Both petitions challenge a Seventh Circuit Court ruling that the Amendment does not restrict gun control laws adopted by state, county or city government, but applies only to federal laws. The cases are National Rifle Association v. Chicago (08-1497) and McDonald v. Chicago (08-1521).
We won’t know anything until probably June of next year, but it will be interesting to watch this unfold.