When Husham died, Hadad son of Bedad became king in his place and ruled from the city of Avith. He was the one who defeated the Midianites in the land of Moab.