This was after he had defeated King Sihon of the Amorites, who ruled in Heshbon, and King Og of Bashan, who ruled in Ashtaroth and in Edrei.