All the kingdom of Og in Bashan, who reigned in Ashtaroth and in Edrei,.... See Gill on Jos 12:4,
who remained of the remnant of the giants; was descended from those that remained in Ashtaroth, after the rest were cut off by Chedorlaomer, Gen 14:5; called there the Rephaim, as here:
for these did Moses smite, and cast them out: that is, not only the giants, but the inhabitants of the above kingdom, the greatest part of them; for the Geshurites and the Maachathites are excepted in Jos 13:13.