In order to become queen, a peasant girl agrees to give a strange old man her first born in exchange for the ability to spin straw into gold. When her baby is born, the poor girl has second thoughts about the bargain so the old man agrees to let her keep the child if she can guess his name.