Who Wrote the First Amendment?

The first amendment was written by James Madison. This was just one of the 11 that he wrote. Ten of them were excepted as the Bill of Rights. He was mentored by Thomas Jefferson.