Readers disagree
Did Moses write the first five books of the Bible?
Jewish and Christian tradition holds that he did, and the Bible says he wrote down parts of the law. Many scholars think the books were put together later from older material. Deuteronomy 34 tells of his death, so someone else wrote at least that.
See Exodus 24:4