Verse study
Deuteronomy 16:18
18 You shall make judges and officers in all your gates, which Yahweh your God gives you, according to your tribes; and they shall judge the people with righteous judgment.
Meaning & historical commentary
Gates were the civic heart of a walled Israelite town, where people came in and out, traded, and settled disputes, so appointing officials "in all your gates" means justice was to be administered locally and visibly rather than only at a distant central shrine. Assigning these magistrates by tribe ties the courts to the community's own kinship structure, so that the people judged are judged by their own clan leaders and officers, not by strangers. The verse ends by making the purpose explicit: the judges are to rule the people with righteous judgment, and the surrounding prohibitions on bribery and partiality show that the courts were expected to be a real check on the powerful, which the original audience would have seen as the foundation of living securely in the land.