A well regulated militia, being necessary to the security of a free state, the right of the people to keep and bear arms, shall not be infringed.
Militias with arms are clearly protected by the Constitution. But without any arms (i.e. gun ban) how can one form a militia? Therefore Americans have the individual right to keep and bear arms in the event that they need to organize a military force.