Joshua reminded the Israelites to obey God's commands as written in the law of Moses and to not worship or associate with the pagan nations around them. If they did this, God would fight for them and they would be victorious, as He had been with them so far. Joshua urged the Israelites to remain faithful to God as they had been until that day.