Israel’s leaders had to be fair and do what was right. Leaders included judges and officials in the 12 tribes of Israel.
They also included Levites, priests, kings and prophets. The leaders had to obey God’s commandments. They had to help the people obey God as well.
They were never to lead the people to worship false gods. Nor were they to copy the ways the Canaanites worshipped their gods. The Israelites had to respect their leaders. They would show their respect by doing what the leaders told them to do. They also showed respect by sharing their offerings with the Levites and priests.
Moses mentioned a prophet who would be like him. Many prophets after Moses were faithful go-betweens for God and the Israelites. But many years later, people understood that this was a prophecy about Jesus. Jesus was the prophet that Moses had talked about.