Among the myriad of mitzvos (seventy-two in total, according to the Rambam) in Parshas Ki Seitzei we learn of the obligation to remember Amalek. זָכוֹר אֵת אֲשֶׁר עָשָׂה לְךָ עֲמָלֵק בַּדֶּרֶךְ בְּצֵאתְכֶם מִמִּצְרָיִם - Remember what Amalek did to you on the way, when you were...

Parshas Shoftim opens with the command to establish courts in the cities and tribal territories of Eretz Yisrael: שֹׁפְטִים וְשֹׁטְרִים תִּתֶּן־לְךָ בְּכָל־שְׁעָרֶיךָ אֲשֶׁר ה' אֱלֹקיךָ נֹתֵן לְךָ לִשְׁבָטֶיךָ - You shall appoint judges and officers for yourself in all your gates that Hashem your G-d gives...