Setting
The landscape of Dathomir For reasons that are unclear, the Kwa species began to degenerate, ultimately losing the ability to speak or use technological tools. Apparently recognizing the path that their civilization was on, they sealed the Infinity Gate and the Star Temples and set guardians to protect the Temples???whuffa worms with thick hides and an impressive turn of speed. The degenerate descendants of the Kwa came to be known as the Kwi or Blue Desert People, and like the rancors they appeared to be simple herd animals living around the planet's arid Great Desert; but on occasion they still showed some surprising hints of intelligence, including a capability to create primitive tools and ornaments, and they possessed a collective memory of their former glory, and the importance of the sanctity of the Star Temples.
Around 30,000 BBY, Dathomir was ruled by the space-faring Rakata. Using Force-based hyperdrives, they traveled to many worlds around the galaxy that possessed significant signatures in the Force, uniting them to form the Rakatan Infinite Empire. Of Dathomir they noted the rancor, and transferred some of them to their homeworld, Lehon, as curiosities. After five thousand years of galactic dominance, the Rakata retreated to Lehon following the outbreak of a plague.
Linguistic evidence shows that the native language of the planet's Humans derives at least in part from that of an Outer Rim hegemony known as the Paecian Empire, dating their presence on the world to about 3,000 BBY, being an adjunct of the Empire; after that the planet was then conquered by Drackmarian warlords. Around 1,002 BBY, the Brotherhood of Darkness operated a Sith academy on the world that trained Sith Acolytes and apprentices.
Later Dathomiri tradition would remember the initial Human population as the exiled creators of illegal battle droid armies, but it is not clear whether the settlers arrived in a single event, or whether the planet was in more continuous use as a penal colony over a period of centuries or millennia. It cannot even be said for sure whether the Paecian exiles were leaders or enemies of their Empire. What is certain is that by 600 BBY, the planet's Human population had become little more than the favorite food for the rancors, reduced to hiding in the thick forests where the mighty beasts could not follow them.