The Haunted Village " The Haunted Village " is the second episode of the of " " . Written by Paul Dini and directed by Raymond Jafelice , the episode originally aired on ABC on September 14 , 1985 . When the Ewoks discover that Morag the Tulgah Witch is up to her old tricks again , they must protect the village ' s sunberry tree s from Morag ' s Mantigrue using their shadowroot soap . Meanwhile , the Duloks are up to no good , hoping to steal some of this soap for themselves and use some of it to scare the Ewoks . Plot summary . Wicket and Kneesaa are looking for sunberries . As they are walking along , Kneesaa notes that there are more of them at the bottom of a hollow tree trunk . The two slide down it ; Kneesaa goes first , and Wicket follows . They land in the sunberry bushes , but Kneesaa is soon kidnapped by a Mantigrue , but Wicket manages to save her from the beast . Unsure of what the creature was , the two decide to go tell the others . They go back to the village , and hear the beast ' s call again . It is coming from Logray ' s hut . The two go investigate , and find Logray and Chief Chirpa inside using a magical device to view the Mantigrue . Logray explains that Morag once sent a Mantigrue to capture the village ' s sunberries , and they believe that she is attempting to do this again . They devise a plan to prevent this . The Ewoks are to cover the trees with shadowroot soap , which will make the sunberry trees invisible until the soap is washed off . The elders begin the chore . Wicket wants to help as well , but he is told to watch after the woklings , and to give them a bath . Wicket , Kneesaa and the woklings go down to a creek , where they playfully take baths . A group of nearby Duloks see them doing this , and see the soap they are using . They want some of the Ewok soap , as they say it is the best way to keep bugs off them , which they seem to have a problem with . At the Dulok ' s lair , the group of Duloks report to King Gorneesh of their findings . Gorneesh is upset with them for their failure to get some of the soap from the Ewoks . But he decides they will soon take it from them . Back at the Ewok village , Wicket , Kneesaa , and the woklings have finished with the bathing . They return to Logray , who says that all of the sunberry trees have now been hidden . However , Wicket notes that those down by the lake have yet to be hidden . Wicket , Kneesaa , and the woklings plead with Logray to allow them to do the job , and he eventually agrees . Meanwhile , two Duloks are climbing up the side of a tree , trying to reach an Ewok hut at the top . They reach the top , and go inside Logray ' s hut . After some fooling around , they find a bar of the soap , and go back down the rope toward the group . King Gorneesh — who is waiting for them at the foot of the tree — becomes impatient with their clumsy antics , and knocks them to the ground . He takes the soap from the henchmen , and back to the Dulok lair . At the Dulok lair , several Duloks take baths . But soon they are shocked to discover that their body parts seem to have disappeared . But after one of them falls into the water and resurfaces , they see that the soap can wash off and they can go back to normal . From this , King Gorneesh suggests a plan . He decides that since they have the ability to disappear , they could go into the Ewok village undetected , and give the Ewoks a scare . Back in the Ewok village , Wicket , Kneesaa and the woklings are working on hiding the sunberry trees with the soap . But Wicket and Kneesaa hear something . They go to investigate . They hear strange noises and voices , but see nothing . Unbeknownst to them , it is the Duloks , on their way to the village . Wicket and Kneesaa go back to the woklings , who they see have now spilt the rest of the soap all over themselves , with more than half of their assigned sunberry trees not hidden . Up in the treetops part of the Ewok village , a group of Duloks emerge from the darkness of a tree trunk , and walk out onto the decks of the treehouses , undetected because of the soap . The Duloks begin playing tricks on and aggravating the Ewoks . Weechee Warrick notes that they are under attack , but they can ' t see by who . Logray comes out of his hut wanting to know what is going on . Some of the Duloks then pretend they are tree spirits and tell the Ewoks that they are banished from the forest forever . Some of the Ewoks at first believe this , but Logray reassures them that the tree spirits have always protected the Ewoks , and would do no such thing as banish them . Wicket runs up to Logray , wanting to know what happened . He is followed by the woklings , who are covered in soap . Although he at first tells them " not now , " when he sees the woklings , Chief Chirpa wants to know what happened to them . Wicket explains that they had a " little accident " with the soap . Kneesaa then points out a cart of spilt sunberries , which reveal the feet tracks of Duloks . Wicket says that he thought he heard Duloks in the forest , but that there was no one there . Logray corrects him , explaining that there were Duloks there . Logray explains that the Duloks must have been the ones who stole his last bar of shadowroot soap . Wicket explains that , because the soap was spilt , they could not finish hiding the trees with it . Logray is worried , because he says that when the Mantigrue comes back and sees even one sunberry tree , then the beast would destroy it and the rest , and maybe the Ewoks too . At Mount Thunderstone , Morag prepares her Mantigrue for its upcoming mission . Back at the Ewok village , the Ewoks are upset about the problem with the soap . Wicket wonders why they wanted soap , since they were naturally so dirty , and Kneesaa mentions the bugs that are constantly flying around them . Logray then realizes that the Duloks must of been after the soap the Ewoks use to keep their fur clean , because they wanted to keep the bugs away . Logray forms a plan . He tells Wicket and Kneesaa to go with their friends and gather as many bugs ( big and small ) as they could in sacks . Meanwhile , Logray would have a little surprise for the Duloks . Back at Morag ' s lair , she releases her Mantigrue into the forest , and it heads for the Ewok village . Logray , Paploo , Chief Chirpa , and Wicket journey to — and hide near — the Dulok village and wait just outside it . Logray tells Wicket to take a different bar of soap of his and replace the shadowroot soap with it . Wicket , in his attempt to do this , hears the Duloks proclaim that they wish to haunt the Ewok village again . Just as Wicket reaches to swap the soap , he is caught in the act by King Gorneesh , who , with his minions , subsequently chase Wicket . Logray blows a horn , sounding the alarm , and he , Paploo , and Chief Chirpa run from the Duloks . In the ensuing chase , the shadowroot soap passes from hand to hand , from the Ewoks to Duloks , back and forth . It ends up in the Ewoks ' hands , but is accidentally dropped into a puddle of water . A Dulok corners Wicket and takes his soap , mistakenly thinking it is the Shadowroot soap . The Duloks go into the swamp , happy to have what they think is the shadowroot soap , and they put it all over themselves . Logray then tells the Ewoks to release the flies he had Wicket , Kneesaa , and the others to get for him earlier . He explains that the soap he gave Wicket that the Duloks were now covered in will attract the bugs like a magnet . The flies then cover the Duloks , who are shocked to be covered in flies rather than being invisible . The Ewoks had defeated the Duloks , but the shadowroot soap had fallen into the puddle of water and separated . They now had to somehow hide the sunberry trees before it was too late . Wicket comes up with an idea . He gathers up the water with the deteriorated soap into a bag . He then takes the bag up into a tree with him and ties it to him . He pokes holes in the bag , and swings on a vine across the remaining sunberry trees , which the soap water falls onto and they disappear . Just as he is doing this , the Mantigrue arrives . Wicket jumps off the vine and into the invisible bushes . The Mantigrue flies around the forest , but does not find any trees , and flies back to Morag ' s lair . The Ewoks are happy that they have fooled the Mantigrue and saved the sunberry trees . Chirpa declares the day a holiday . Before the soap is washed off the trees , Wicket decides that there is one more thing he has to know . His results are positive ; he states that " Invisible sunberries taste just as good as regular ones " . Behind the scenes . " The Haunted Village " was adapted into a children ' s book of the same name in 1987 . The episode was released on DVD in 2004 as part of the feature film " The Haunted Village " . It can be found on side 2 of the disc . Although the episode takes place second in the series ' chronology , it is presented first on the DVD .