Rapunzel is the hidden secondary antagonist of DreamWorks' 14th full-length animated feature film Shrek the Third. She is a (former) member of the princess group and Prince Charming's secret girlfriend.
She was voiced by Maya Rudolph, who later played Smiler in the 2017 film The Emoji Movie.
Her name was seen at the gate at her tower home within the kingdom of Far Far Away in Shrek 2, although she was not seen.
Shrek the Third
She was first seen at King Harold's funeral. Then, at Fiona's baby shower. When Prince Charming invaded Far Far Away with his army of villains, Rapunzel betrayed all the other princesses and brought them to him so she can be with him.
Then, she took part in a play with Charming and his friends, playing as the role of a princess being trapped in a tower. When Charming is seen on his horse inside of a giant decorated clam-shell, she is impressed by his performance. During the final battle, Gingy uses her long hair to descend from the tower. Her hair falls off, revealed to be a wig.
Shocked and humiliated, Rapunzel abandoned Charming and ran away never to be seen again.
She is well-recognized of being a fraud later throughout the film. An example of this is when she betrays Fiona and the other princesses, so that she can be with Charming. It is unknown why Rapunzel was in love with him in the first place. Rapunzel is appears to be more focused on certain things (or objects), like when she constantly sips her cup of tea at Fiona's baby shower and saying only a few words. Meaning, that she does not care about what was actually going on.
Prince Charming - it is shown that Charming is Rapunzel's boyfriend. They both seem to be in love with each other when they are seen kissing.
Charming introducing Rapunzel as the new Queen of Far Far Away