This took place after he defeated Sihon, king of the Amorites, who lived in Heshbon and Og, king of Bashan, who lived in Ashtaroth at Edrei.