Just like he had promised our ancestors, Yahweh allowed them/us to have peace with the enemies that surrounded them/us. Yahweh enabled the Israelis/us to defeat their/our enemies.