<human>:  Who wrote the First Amendment to the US Constitution?
<bot>: The First Amendment was written by James Madison. The First Amendment states that "Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances."