In earlier times the Horites had lived in Seir, but they were driven out and displaced by the descendants of Esau, just as Israel drove out the people of Canaan when the Lord gave Israel their land.)
and as they camped in the valley near Beth-peor east of the Jordan River. (This land was formerly occupied by the Amorites under King Sihon, who ruled from Heshbon. But Moses and the Israelites destroyed him and his people when they came up from Egypt.
and all the territory of King Og of Bashan, who had reigned in Ashtaroth and Edrei. King Og was the last of the Rephaites, for Moses had attacked them and driven them out.