So on that day Joshua made a covenant with the people and established for them decrees and laws at Shechem.
In context
23“Now, then, put away the foreign gods that are among you, and incline your hearts to Yahweh, the God of Israel.” 24The people said to Joshua, “We will serve Yahweh our God, and we will obey his voice.” 25So on that day Joshua made a covenant with the people and established for them decrees and laws at Shechem. 26Joshua wrote these words in the Book of the Law of God. He took a large stone and set it up there, under the oak that was near the sanctuary of Yahweh, 27and Joshua said to all the people, “See this stone — it will be a witness against us, for it has heard every word Yahweh has spoken to us. It will be a witness against you, so that you do not deny your God.”