Backstory: The film opens with Flynn narrating that this is the story of how he died. A drop of sun grows a magic flower, and Gothel hoards it to stay young. When the pregnant queen is dying, the flower is used to heal her, and its power passes into her daughter's hair. Gothel steals the baby and raises her as her own in a hidden tower.
Journey: Flynn has stolen the lost princess's crown, and Rapunzel makes him guide her to the lantern festival. They bond along the way, Flynn is revealed to be Eugene Fitzherbert, and they fall in love. Gothel interferes by manipulating the Stabbington brothers and by planting doubt in Rapunzel's mind.
Climax: At the festival, Rapunzel realizes that the sun symbol in her paintings matches the kingdom's emblem, and she knows she is the lost princess. Flynn is arrested after being betrayed by the Stabbingtons, and Gothel recaptures Rapunzel and claims Flynn abandoned her. Flynn escapes with help from the thugs and finds Rapunzel in the tower. Gothel stabs him, and Rapunzel agrees to go with her if she can heal him. Flynn cuts Rapunzel's hair, which destroys its magic, and Gothel rapidly ages. She falls from the tower and turns to dust. Flynn dies, but Rapunzel's tear heals him.
Hidden meaning: Flynn's opening line is misleading, since he does not stay dead. The film suggests that love, not magic hair, is the true power, and that Rapunzel was never truly powerless. Rapunzel reunites with her parents and returns to Corona, and Eugene and Rapunzel eventually marry.