Amalek is a grandson of Esau and ancestor of the Amalekites (Gen 36:12), Israel’s perennial enemy in the wilderness. The Amalekites attacked Israel at Rephidim (Exod 17:8-16), and YHWH declared perpetual war against them.