With the help of her friends, Rapunzel manages to escape the tower as she never lied about not knowing Stefan's name, and Penelope flies them to the castle. At the ball, Stefan is lured outside and attacked by a disguised Gothel wearing Rapunzel's hair; at the same moment, King Wilhelm infiltrates the castle, intending to end the feud by force. Wilhelm accuses Frederick of kidnapping his daughter many years ago—the source of the feud; Gothel arrives and reveals that she was the one who took Wilhelm's daughter, Rapunzel, due to her unrequited love for him, wanting the kingdoms to destroy each other. Rapunzel arrives and Wilhelm recognizes her as his daughter. Rapunzel tricks Gothel into running into her painting of the tower, where she becomes permanently imprisoned for her lies.