This happened after defeating Sihon king of the Amorites, who was reigning in Heshbon, and Og the king of Bashan, who was reigning in Ashtaroth in Edrei.