<human>:  Who wrote the First Amendment?
<bot>: The First Amendment was written by James Madison. He was the main author of the Bill of Rights, which was adopted in 1791. The First Amendment is the first in the Bill of Rights, which was adopted in 1791. The First Amendment protects freedom of religion, speech, press, assembly, and petition.