Soul Trees being rescued by Ewok gliders deploying magic foam. Magic foam was invented by the Shaman Logray for the purpose of putting out fires.
This foam is deployed either by throwing it or dropping it onto a target using small bags. Upon impact, the bag breaks open, releasing a substantial amount of the substance across a broad area, generally enough to put out flames in the targeted region.
When Morag, the Tulgah witch, tried to destroy the Ewoks' trees using bewitched Wisties, the Ewoks employed this foam. During this event, the cursed Wisties that were splashed with the foam reverted back to their original state, enabling the Ewoks to deal with the underlying cause of the forest fire. Wicket and Kneesaa, directed by the healed Wisties through the risky air currents resulting from the forest battle, piloted hang gliders over the treetops to drop foam-filled bags from above, thus managing to control the blaze and preserve the Soul Trees.