Dorothy (Fairuza Balk) defeats the Nome King when he attempts to eat Jack Pumpkinhead. He doesn't realize Billina the chicken is in Jack's head. She lays an egg (poisonous to Nomes) which the Nome King swallows.
The Emerald City is restored and Ozma is returned to her throne. Dorothy is returned to her home, and we're left wondering if she really went to Oz or not.