Battle of Kashyyyk The Battle of Kashyyyk was one of the final engagements of the Outer Rim Sieges of the Clone Wars , a pan - galactic conflict between the Galactic Republic and the Confederacy of Independent Systems . It was fought on the Mid Rim planet of Kashyyyk , the homeworld of the Wookiee s , and focused on the defense of Kachirho , the capital of the planet . Prelude . Following the rescue of Supreme Chancellor Sheev Palpatine during the Battle of Coruscant and subsequent Republic victory , the Jedi High Council gathered at the Jedi Temple to discuss their next move . It was decided that Yoda would travel to Kashyyyk to aid the Wookiee s in their fight against the Droid Army . The battle . Confederate assault . The Separatist Droid Army targeted the planet ' s oil refinery . Grand Master Yoda ordered the defense of Kachirho as the Separatist forces rushed across the lagoon with haste . Clone trooper s and Wookiee warriors set up a perimeter on the beach to confront the enemy as more warriors swung from the cliffs along the archipelago to place mine s on the NR - N99 enforcer tanks . Meanwhile , clone scout trooper s fired from trenches and along the branches of Tree Kachirho . On the vehicle front , Wookiee Oevvaor jet catamaran s were aided by HAVw A5 Juggernaut s , AT - RTs , AT - AP Walker s and other assault vehicles . They faced enormous opposition from Separatist NR - N99 droid tank s , Dwarf Spider Droids and HMP droid gunship s . Atop the seawall were two concussion turret s and multiple clone trooper s . Few attempts from the CIS to destroy the seawall were made , and eventually the tide of the battle turned in favor of the Republic . Order 66 . During the battle , Yoda felt a great disturbance in the Force as Anakin Skywalker was converted to the Dark Side , followed by an even stronger disturbance as Order 66 was carried out throughout the galaxy . Clone Commander Gree received a call on his comlink , in which Palpatine instructed him to execute Order 66 . A scout trooper joined Gree in the attempt to assassin ate Yoda . As the clones prepared to execute him , Yoda drew his lightsaber , sensing what was about to happen , and in one fell swoop decapitated his would - be assassins . Yoda then proceeded to escape into the nearby jungle along with the still loyal Wookiee warriors Tarfful and Chewbacca . Aftermath . Yoda and the Wookiees would proceed to escape into the nearby mountain s . Later that evening , Chewbacca and Tarfful brought Yoda to an escape pod . After exchanging farewells , Yoda left the planet in the pod . Though the clone troopers won the day , they would soon take the place of the Separatists as an invading force , except they would be successful in conquering the world , and the Wookies would not be able to hold them back . The Empire , the successor state of the Republic , legalized slavery , leading many , the Empire itself in particular , to take Wookiee slaves due to their immense strength . Yoda managed to meet up with Obi - Wan Kenobi , having also escaped Order 66 , and the two infiltrated the Jedi temple to reverse the message being sent to Jedi , warning them to stay away . He then attempted to kill Palpatine , but failed , and exiled himself to Dagobah . Chewbacca was one of the slaves taken by the New Order from Kashyyyk , and suffered many years as one , until he was freed by a smuggler named Han Solo . Behind the scenes . A climactic battle between the technologically advanced Empire and a race of primitive hairy aliens , the Wookiees , was present in George Lucas ' s original treatment for " " . As the story changed and the trilogy structure was solidified in Lucas ' mind , the battle was postponed until " " , where it developed into a battle featuring Ewok s on the forest moon of Endor . At the same time , the Wookiees developed into a more technologically savvy , though not less hairy , species . Lucas ' original conception of the battle featured hundreds of Wookiees on screen . Due to costs , the original idea was scrapped and replaced by a battle featuring relatively few diminutive Ewoks , who did not play a very significant tactical role in the battle . A large - scale battle with hundreds of characters was eventually realized in " " .