After the miller falsely boasted to the king that his daughter can spin straw into gold, the girl promises her first-born child to a strange little man who claims that he can help her.