The origins of the Second Amendment

The Second Amendment provides U.S. citizens the right to bear arms. But why did the Founding Fathers create it and how did it become a part of the Bill of Rights?