Moses evidently wrote this book on the plains of Moab shortly before his death, which occurred about 1406 B.C.
The Mosaic authorship of this book is quite easy to establish. The book claims to be the words of Moses (1:5, 9; 5:1; 27:1, 8; 29:2; 31:1, 30; 33:1, 29) and his writing (31:9, 22, 24). Other Old Testament books also assert the Mosaic authorship of Deuteronomy (1 Kings 2:3; 8:53; 2 Kings 14:6; 18:6, 12). Jesus Christ believed Moses wrote Deuteronomy (Matt. 19:7-8; Mark 10:3-5; 12:19; John 5:46-47) as did the Apostle Peter (Acts 3:22), Stephen (Acts 7:37-38), Paul (Rom. 10:19; 1 Cor. 9:9), and the author of the Epistle to the Hebrews (Heb. 10:28).
"The authorship of no other book in the Old Testament is so explicitly emphasized."2
The form in which Moses wrote Deuteronomy is very similar to that of ancient Near Eastern suzerainty-vassal treaties dating before and during the Mosaic era. This structural evidence confirms an early date of composition.3
Most conservative commentators prefer to regard the record of Moses' death and a few editorial comments as the work of a later writer or writers. Of course, Moses could have written these verses too.
In spite of such conclusive evidence some scholars prefer a later date for Deuteronomy. The critics favor a post-Mosaic but pre-seventh century date, a seventh century date in King Josiah's era, or a postexilic date.4