The shifts in leadership within the kingdom of Edom are closely tied to regional military conflicts and the involvement of neighboring nations. A key event in this political landscape is the rise of a new king, Hadad son of Bedad, who gains his position through a significant military victory over the Midianites. This battle notably takes place in the territory of Moab. The specific location of the conflict is a direct result of the lifestyle of the Midianites, who operated as nomadic tribes without a permanent, clearly defined homeland [ביאור שטיינזלץ].
When these wandering Midianite forces launched an attack on Moab, the king of Edom intervened to assist the Moabites. He led his military directly into Moabite territory to confront the invaders, ultimately securing a decisive victory against the Midianites on his neighbor's land [מצודת דוד, ביאור שטיינזלץ]. Following this triumph, the new king established his rule from his royal city, which is known by tradition as Avith [מנחת שי].