"This Allya was a rogue Jedi, the Old Republic did not want to execute her, so the Jedi exiled her, hoping that given time she would turn away from the dark side."
As a Force-sensitive woman, Allya trained with the Jedi Order and eventually obtained the rank of Jedi Knight. However, approximately around 600 BBY, she deviated from the orthodox Jedi path and became a fallen Jedi. The Jedi Council, who rarely executed offenders, hoped that primitive isolation would force Allya to reflect on her Masters' teachings and return to the light.[2][3] Since Dathomir, with its savage and rugged forests, had long served as a penal colony for some of the Galactic Republic's worst criminals, the Council choose to banish her there.[4][2][3][5]
Upon her arrival at Dathomir, Allya discovered the planet's inhabitants who were the descendants of Human warriors and droidengineers incarcerated by the extinct Paecian Empire.[5][1] Allya used the Force to tame feral rancors and subjugate the prisoners, as well as any other desperate life forms.[3][6] Once in command she established a matriarchal society with a genetic Force component and where men had little to no power.[5][6] In time Allya had many daughters and taught each one, along with other women, the ways of the Force.
This new society filled with clans of female rancor tamers who used totems and incantations to generate their "magic" became known as the Witches of Dathomir.[5] It was not until the birth of her granddaughters that Allya saw the error of her ways: she had turned her own sons into slaves and taught her daughters how to use the Force to achieve power. Using her strong influence over her offsprings, she spent the rest of her days instructing her daughters in the ways of the light side.[7] Before her death, to ensure her daughters practiced their magic in a safe and sane manner, Allya wrote The Book of Law which she based off the Jedi Code.[6] The Witches of Dathomir never learned that the magic they used was actually the Force.
Despite her death, Allya's society and unique culture survived well into the modern eras[5] governed by The Book of Law.[8] Her descendants would share her story with their daughters for generations.