Sanjay Rash Sanjay Rash was a human male monarch who ruled as King of Onderon during the Clone Wars . After taking the throne from his predecessor , King Ramsis Dendup , Rash gained the military support of the Confederacy of Independent Systems . However , a band of rebels opposed the Separatist occupation of their home planet and supported Dendup ' s claim against Rash . With the help of the Jedi Order and the Galactic Republic , Steela Gerrera ' s insurgents fought a successful campaign to drive the battle droid army off of Onderon . During the evacuation , Rash was executed by General Kalani on Count Dooku ' s orders . As a result , Dendup regained control of the royal government . Biography . When the Clone Wars began , King Ramsis Dendup was forced to either join up with the Galactic Republic or the Confederacy of Independent Systems . In the end he chose neither , so the Separatists invaded the capital of Onderon , Iziz , against the king ' s will . With the CIS in control , Sanjay Rash was chosen to be the successor of the old king , but not as a true king , but as a puppet of Dooku to keep an eye on the planet . With Sanjay Rash now in control , Dendup was im prison ed in the palace ' s garden . However , a small band of rebels started fighting against the droid s and Sanjay ' s rule and were forced to retreat into the jungle s . There , they contacted the Jedi High Council and the Republic for help . The Council sent the Jedi Obi - Wan Kenobi , Anakin Skywalker and Ahsoka Tano as well as Clone Captain Rex to train the rebels . Once the Jedi made their way to the planet , they were led to their outpost in the jungle . With captured Separatist droids and munitions , the Jedi trained the rebels how to disable tanks and droideka s with grenade s as well as target practice . Meanwhile in the city , probe droid s were sent to investigate the site after the Republic ship that brought the Jedi to the planet failed to register . The droids discovered the base of the rebels and a battalion was sent to eradicate them . After a short battle the rebels were able to take down the battle droid s and were ready to head inside the capital . Once in the city , the rebels began small strikes against the droid patrols . The news eventually came to the ears of the false - king Rash , who ordered Dendup to call off the attacks , thinking he was the one behind them , even though he had no access to the outside . Dendup suggested that he could only stop the attacks by ending the droid occupation . The same night the rebels made an attack on the city ' s power generator , disabling it for good . Without power , the droids were unable to recharge and would eventually be disabled one by one . With the darkness as their cover , the rebels were able to ambush battle droid partols with ease . The rebels ' actions made Rash even more distraught , and he demanded better troop s from Count Dooku . The count , although displeased for the king ' s ability to not take care of the rebels , agreed to send more reinforcements , and also send a super tactical droid named Kalani to succeed where the king had failed . Some time later the Onderon rebels continued their strikes against the droids in the city and sent a message to the people of Onderon . Back in the palace , General Tandin identified Steela and Saw Gerrera as well as Lux Bonteri as the key members of the rebels . General Tandin suggested that the Royal Onderon Militia be allowed to handle the rebels , but Kalani refused , suspecting that the militia could have rebel sympathizers among them . Rash was getting more and more frustrated , and called Dendup again to his throne and ordered his predecessor to stop the attacks . Once again , Dendup denied that he had no part in the rebels ' doings and said it was the will of the people that justified their actions . The King was done with the terrorist ' s acts and ordered Dendup ' s execution the next day , hoping it would break the rebels ' moral and stop the attacks . That night , Saw Gerrera tried to free the former king , but was captured and now taken part of the execution . However , before the executions began , the rebels attempted to capture Dendup , but failed as droid reinforcements arrived . Because of this , they all joined the execution , but before they could proceed any further , General Tandin betrayed the Separatist King and joined the rebels , along with the royal guard . With Tandin holding Rash as hostage while the others escaped , Ahsoka Tano jumped out of the crowd and knocked the droids down and escaped to the rebels ' secret hideout . Rash ' s droids attempted to pursue them , but were stopped as the crowd stopped them , now sided with the rebels . Now that the king was free and General Tandin had joined the fight , the rebels prepared the final part of the battle . They set up a base in the mountain s located to the east from Iziz . Rash and Kalani sent a massive army along with new HMP droid gunship s to eradicate the rebels . At first the new gunship s seemed indestructible , but Anakin Skywalker managed to buy a effective few rocket launchers from Hondo Ohnaka per Ahsoka Tano ' s request . The rebels were able to destroy the gunships and win the battle , but at the cost of losing Steela Gerrera . Back at Iziz , King Rash was desperate and demanded more troops from Count Dooku , but he wasn ' t interested in a prolonged war and ordered Kalani to retreat the remaining army to Agamar . Rash protested , but was shot dead by Kalani , ending the Separatist rule of the planet . As Kalani and the droid army retreated from the planet , the rule was brought back to Dendup , ending the Separatist occupation .