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.