This is intriguing:
In a new study published in the journal Royal Society Open Science, a folklorist and anthropologist say that stories like Rumpelstiltskin and Jack and the Beanstalk are much older than originally thought. Instead of dating from the 1500s, the researchers say that some of these classic stories are 4,000 and 5,000 years old, respectively. This contradicts previous speculation that story collectors like the Brothers Grimm were relaying tales that were only a few hundred years old.
It turns out that it’s pretty hard to figure out how old fairy tales are using simple historical data. Since the tales were passed down orally, they can be almost impossible to unwind using a historian or anthropologist’s traditional toolbox. So the team borrowed from biology, instead, using a technique called phylogenetic analysis. Usually, phylogenetic analysis is used to show how organisms evolved. In this case, researchers used strategies created by evolutionary biologists to trace the roots of 275 fairy tales through complex trees of language, population and culture. […]
As they tracked, they found evidence that some tales were actually based in other stories. More than a quarter of the stories turned out to have ancient roots—Jack and the Beanstalk was traced back to the split between Western and Eastern Indo-European languages more than 5,000 years ago and a tale called The Smith and the Devil appears to be more than 6,000 years old.
If true, this would mean that elements of present-day Western culture date back to before the Epic of Gilgamesh and before the first (legendary) dynasty of China. From the study:
Wilhelm Grimm argued that the traditional German tales that he and his brother Jacob had compiled were remnants of an ancient Indo-European cultural tradition that stretched from Scandinavia to South Asia…
The Smith and the Devil is a European fairy tale. The story is of a smith who makes a pact with a malevolent being—commonly the Devil (in later times), Death or a genie—selling his soul for some power, then tricks the devil out of his prize. In one version, the smith gains the power to weld any material, he then uses this power to stick the devil to an immovable object, allowing the smith to renege on the bargain.