The millers daughter was smart, and beautiful. But the miller boasted about her being able to spin gold out of straw to the king.
The king captured the girl and forced her to spin up all the straw into gold if she loves her life. But she couldn't spin gold out of straw
When the king left a little dwarf came in and said he could spin gold out of straw. So she gave him her necklace, ring, and when she married the king and had a baby it would be his.
The king marries the daughter and they have a baby. But the daughter forgets about what she told the dwarf. When she remembered the dwarf gave her three days to try to guess his name.
The daughter stays up all night thinking of all the odd names. She sent messengers all over to find out new ones. But he kept on saying "Madam that is not my name."
One of the messengers saw a dwarf dancing around the fire and saying, "Rumpelstiltskin is my name." The messenger told this to the queen the queen said, "Can your name be Rumpelstiltskin?" And the queen got to keep her baby.