Joshua 8:31

31 Moses, the servant of the Lord, had commanded the people of Israel to do that. Joshua built the altar in keeping with what is written in the Scroll of the Law of Moses. He built an altar out of stones that iron tools had never touched. Then the people offered on the altar burnt offerings to the Lord. They also sacrificed friendship offerings on it.

Joshua 8:31 Meaning and Commentary

Joshua 8:31

As Moses the servant of the Lord commanded the children of
Israel, as it is written in the book of the law of Moses
( Deuteronomy 27:5 ) ;

an altar of whole stones, on which no man hath lift up [any] iron;
(See Gill on Exodus 20:25), (See Gill on Deuteronomy 27:5), and, (See Gill on Deuteronomy 27:6):

and they offered thereon burnt offerings unto the Lord, and sacrificed
peace offerings;
by way of thanksgiving for the good land they were introduced into, and this was what they were ordered to do by Moses, ( Deuteronomy 27:6 Deuteronomy 27:7 ) .

Joshua 8:31 In-Context

29 Joshua killed the king of Ai. He stuck a pole through the body. Then he set it up where people could see it. He left it there until evening. At sunset, Joshua ordered his men to remove the body from the pole. He told them to throw the body down at the entrance of the city gate. They put a large pile of rocks over the body. That pile is still there to this very day.
30 Joshua built an altar to honor the Lord, the God of Israel. He built it on Mount Ebal.
31 Moses, the servant of the Lord, had commanded the people of Israel to do that. Joshua built the altar in keeping with what is written in the Scroll of the Law of Moses. He built an altar out of stones that iron tools had never touched. Then the people offered on the altar burnt offerings to the Lord. They also sacrificed friendship offerings on it.
32 Joshua copied the written law of Moses on stones. He did it while all of the people of Israel were watching.
33 They were standing on both sides of the ark of the covenant of the Lord. All of the people of Israel, including outsiders and citizens, were there. Israel's elders, officials and judges were also there. All of them faced the priests, who were Levites. They were carrying the ark. Half of the people stood in front of Mount Gerizim. The other half stood in front of Mount Ebal. Moses, the servant of the Lord, had earlier told them to do it. It was when he had given directions to bless the people of Israel.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.