What I would like to explore is the possibility that certain primeval legends of the Hebrews and the Greeks, especially relating to the Nephilim, Rephaim, and the Titans as a primeval race of demigods, actually preserve tiny kernals of historical memory going back to the third millenium B.C. In fact, the evidence suggests that the Greek Titans and the West Semitic legends of the Nephilim and Rephaim vaguely recall the same socio-political entity, the Didanites who were third-millenium precursors of the later second-millenium Amorite Empire.
The Pentateuch and the "Deuteronomist History" of the OT assembles the varied ancestral traditions of the Israelites and Judeans to tell a uniform story: the two nations of the Israel and Judah are descended from a single family who, after a period of oppression by the Egyptians, returned to the Levant and conquered the land from an undeserving population of Canaanites. The OT gives a dizzying array of tribal names for the ancestral peoples of Canaan: Amorites, Hittites, Horites, Nephilim, Rephaim, Anakites, Zuzim, Zamzummim, Emim, Amalekites, Perizzites, Kadmonites, Hivites, Girgashites, and on and on (cf. Genesis 10:15-19, 14:5-6, 15:18-21; Deuteronomy 2:10-12; Joshua 17:15). Bible scholars have long noted that many of these names, such as the Amorites, Hittites, and Horites, are used in interchangeable ways that suggest that the identity of the peoples associated with the names had been forgotten. These first three, however, refer to important second-millenium empires in the Near East: (1) The Amorites were a West Semitic people of the late third and early second millenium (2200-1600 BC) who originally lived in rural lands near the city of Mari in the middle Euphrates but later founded the Old Babylonian, Isin, and Assyrian dynasties and held almost universal control over Mesopotamia by 1700 BC. (2) The Hittites were based in Anatolia (Turkey) and by the middle of the second millenium held sway over Canaan; the Hittites were speakers of an Indo-European language, and a dispute between Hittites and Mycenaean Greeks involving the Hittite city Wilusa (Greek Ilios, aka Troy) was the famous subject of the Greek Iliad. (3) The Horites were the Hurrians, an Armenian people who invaded Amorite lands around the time of the Hyksos incursion in Egypt (c. 1650 BC), took over Mari and Alalakh, founded the capital city of Nuzi, and together with an Indo-Iranian group founded the kingdom of Mitanni which held sway until Egyptian dominantion came in the fifteenth century BC. So these are not made-up names but refer to actual peoples, though the identities of these peoples had long been forgotten by the first-millenium Israelites.
1. THE REPHAIM AND NEPHILIM IN THE BIBLEBut what of some of the other peoples, the Rephaim, Nephilim, Anakites, and so forth? These names show quite a different character in the OT. They seem to denote an almost mythical race of giants living in fantastically fortified cities. Regarding the Anakites, Deuteronomy 1:28 has the Israelites complaining: "The people are stronger and taller than we are; the cities are huge, with walls up to the sky. We even saw the Anakites there." Regarding the Nephilim, we read in Numbers 13:33: "We saw the Nephilim there, as the Anakites come from the Nephilim. We seemed like grasshoppers in our own eyes, and we looked the same to them". According to Deuteronomy 2:10, the Emim were as tall as the Anakites, and the next verse equates the Rephaim with them. Og, the king of Bashan, was regarded as one of the last of the Rephaim and his gigantic stature is described in the same book:
All this would be remarkable in itself, but there is more. The Rephaim are also mentioned as the shades, or ghosts, of the dead in Sheol. In one cases, they appear to be the ghosts of dead kings. Job 26:5-6 says: "The Rephaim tremble beneath the earth; the waters and their denizens are afraid. Before his eyes, Sheol is laid bare, Abaddon itself is uncovered". A similar remark is found in the Psalms: "Are your marvels meant for the dead, can the Rephaim rise up to praise you? Who talks of your love in the grave, of your faithfulness in Abaddon?" (Psalm 88:10-11). Another important text is Proverbs 9:18:
And even more remarkable account occurs in the Yahwist primeval history on the origin of the Nephilim, which Numbers 13:33 shows are equivalent to the Rephaim of Deuteronomy. According to the Yahwist account in Genesis, they are of divine descent:
The myth related in Genesis 6:1-4 describes the descent of these divine beings to earth where they married human women and begat mighty heroes (gbrym) called the Nephilim, the "men of renown". The name nplym "Nephilim" comes from the root *npl "to fall" which likely alludes to the descent of the sons of El. There are three texts in the OT which refer to the "fall" of the divine beings in a rebellion against El or Yahweh:
But the mythological motif in Genesis 6:1-4, the intermarriage of gods and human women and their fantastic offspring, is familiar throughout the Near East. The Sumerians named gods such as Dumuzi, the god of agriculture, as their earliest kings, and many other legendary kings of the heroic age were demi-god hybrids of god and man. Meskiaggasher, a king from the first dynasty of Uruk, was the son of the sun-god Utu, and a later king Gilgamesh was believed to be two-thirds god and one-third man, as his father was the shepherd-god Lugalbanda and his mother a demigod. The Egyptians believed their own kings to be gods in the flesh. The Phoenician legends of Sanchuniathon also related how the gods came to earth, intermarried with mortal women, and with their giant children helped discover civilization:
2. THE FLOOD AS A LATER ADDITION TO THE PRIMEVAL HISTORYGenesis 6:1-4 functions as an etiological legend on the origin of the Nephilim, Rephaim, and similar peoples of Canaan. Hence this tradition originally knew nothing of the Flood of Noah, which would have destroyed the very ancestors of the giants that lived in the days of Moses and Joshua. The story of the Nephilim likely came from an early layer of J, the Yahwist document that was later incorporated into Genesis, that preceded the inclusion of the Flood story (cf. Numbers 13:33, which also derives from J). There are several indications that the Flood story is a later accretion to the primeval history.
[1] First of all, note the statement in Genesis 6:4: "The Nephilim were on the earth at that time (and even afterwards) when the sons of God resorted to the daughters of men." The words 'chry-kn "and even afterwards" intrude into the text as a paranthetical gloss tacked on to harmonize the original account from J (which in Numbers 13:33 has the Nephilim living in the Promised Land in the days of Joshua) with the story of the Flood which was incorporated at a later stage. [2] The post-exilic book of Baruch makes reference to the Nephilim in language very reminiscent of Genesis 6 but designates the giants as the ancient inhabitants of Israel who perished only through lack of wisdom (that is, no reference to a Flood per se):
[3] Another indication that the Flood story was later added is the following about the Nephilim: "These were the mighty ones (gbrym) of old, the men of renown ('nsy h-sm)" (Genesis 6:4). If these men were so renowned and famous, why is nothing said in the Bible about them? Well, maybe one of then is mentioned in Genesis! Note the following in 10:8-9:
[4] The fourth piece of evidence that the Flood story was later added to the primeval history relates to Noah himself . Noah was originally an agricultural hero, famous for his discovery of wine. In the older Canaanite tradition, Noah would have been analogous to the demigods in Sanchuanthon's history who discovered hunting, fishing, herbs, writing, etc. The crucial fact is that the name nwch "Noah" is related to the word nchm "comfort". Now the obvious foreshadowing to the name occurs in Genesis 3:17, the curse on Adam, referring to the "toil" and "suffering" in agricultural work and the "sweat on your brow" it brings. Then in Genesis 5:29 Lamech, the father of Noah, says when he names him: "Here is the one who will give us, in the midst of our toil and the laboring of our hands, a consolation derived from the ground that Yahweh cursed." So there is an obvious backward reference to Genesis 3:17. But the forward reference cannot be to the Flood (which certainly brought no such comfort), but to Noah's discovery of vine-culture, which brought comfort derived from the ground (Genesis 9:20-24). In this vein, also note Proverbs 31:6-7 which recommends "wine for the heart" and declares, "Let them drink and ... remember their misery no more." The intervening Flood story breaks up the connection between the wine discovery in ch. 9 and the naming of Noah in ch. 5 and thus probably conflates an agricultural hero with the survivor of a cataclysmic Flood.
Genesis 9:20-24 also introduces Noah in an entirely new character, as not only the discoverer of the vine but the first victim of its effects. The Noah of vs. 20-27 comes from a different cycle of tradition from the righteous and blameless patriarch who was the hero of the Flood. Note that v. 20 calls him "Noah the husbandman " which implies the existence of traditions about his work in agriculture. In fact, there is an infamous problem in the position of this episode after the Flood story. In the Flood narrative, Noah's sons are married men who take their wives into the ark. Here, on the contrary, they are represented as minors living in the "tent" with their father; and the conduct of the youngest is conceived almost as an exhibition of juvenile immaturity. The most likely explanation, then, is that Genesis 9:20-27 belong to a stratum of the Yahwist writer (J ) who knew nothing of the Flood. Note that in v. 24 the offender is the youngest son of Noah, and in v. 25 he is named Canaan, while Shem and Japheth are referred to as his brothers. It is true that in v. 22 the misdeed is attributed to "Ham the father of Canaan" but the words appear to harmonize the account with vs. 18-19 (of the Flood account), and the words leave unresolved the problem between v. 24 and v.25. Not only is there a problem with the position of this story after the Flood account, but it interrupts the connection between v. 19, which describe Ham, Shem, and Japheth as the fathers of humankind, and Genesis 10-11 which lay out how this happened. By all appearances, this story seems to be independent of the Flood narrative.
[5] The final piece of evidence indicating that Flood narrative was added later to the account relates to Cain. As the eponymous ancestor of the Kenites (cf. especially Numbers 24:21-22, which refers to the Kenites by the name of their ancestor Cain), his nomadic line obviously did not perish but remained in existence throughout Israelite history (Genesis 15:19; Judges 1:16, 4:11; 1 Samuel 14:6; Jeremiah 35:1-19). Their nomadism and lack of agriculture is related in Genesis 3:12-16, their specialty in metal-working is mentioned in 4:22, as well as their focus on music (4:21). The Cainite geneology in Genesis 4 is evidently from a Kenite source that viewed their ancestor as the founder of human civilization. There was thus no hint of a Flood wiping out human society in the Yahwist account that posits Cain as the ancestor of the Kenite portion of the Judean population.
3. THE REPHAIM IN CANAANITE TRADITIONFrom the foregoing, we can see that the Nephilim and Rephaim are names for a race of prehistoric inhabitants of the land, of gigantic stature and of divine descent, who barely survived into the days of Joshua and David but who were the famous heroes and kings of old. Now they reside in Sheol as shades and ghosts. This notion was not invented by the Israelites. It can also be found in the literature of the Canaanites who preceded them, as well as in later Phoenician texts. Sarcophagus inscriptions of Phoenician kings allude to the Rephaim in a manner reminiscent of Isaiah:
But who were the Didanites? The Canaanite text equates them with the Rephaim. There is more on them in the Keret Epic, which relates the story of Keret, king of the "House of Habur", whose family was tragically destroyed. But El blesses him and prophesies that his family would be restored: "Be greatly exalted, Keret, by the Rephaim of the netherworld, in the gathering of the assembly of the Ditanites (dtn)" (KTU 1.15 iii 2-4). Here the name is spelled differently, but the same group is meant. Finally, there is the Tale of Aqhat which concerns a wise and possibly divine ruler named Danel, a "Rapha man, the valiant Harnamite man" from the days of yore (KTU 1.17 i 1-2), whose child Aqhat was killed by the goddess Anat and her henchmen (KTU 1.18-19). Here we meet one of the Rephaim in life, and the story of Danel was well known in Israel as it was mentioned in Ezekiel 14:12-20, 28:1-3, and 1 Enoch 6:7, 69:2 characterizes him as a fallen angel, confirming again the relationship between the Nephilim of Genesis 6 with the Rephaim venerated by the Canaanites. Harnam is an obscure name but is best explained either by the Hamrin region of the Amorites or Mount Hermon near Phoenicia.
4. THE TITANS AND GREEK HEROES RECONSIDEREDIt has long been recognized that the Greek myths are heavily dependent on the mythologies of the Near East. The myths themselves make this evident, as they frequently refer to localities in the Levant. Zeus fights the monster Typhon from Mount Casius located in Lebanon, the same mountain where Baal fought Yamm and Mot in the Ugaritic myth. Perseus saves Andromeda (< West Semitic 'nt rmt "Queen Anat") from the sea monster on the Levantine coast near Jaffa. The multi-headed dragon Ladon that guarded Hephaestus' golden apple tree is none other that the Lotan/Leviathan monster from Canaanite mythology. Aphrodite is based on Athtart/Astarte and Adonis (< West Semitic 'dn "lord," synonym of b'l "Baal") is based on the cult of Baal/Tammuz. Poseidon's son Agenor ruled as king of Tyre, and his son Cadmus introduced the Semitic alphabet to the West and begat Phoenix, the founder of Phoenicia, and Cilix, the founder of Cilicia. Danaus originated in the East, his father being Belus (< b'l "Baal") and his brother being Aegyptos. Mopsus was counted as one of the Danaoi (the descendents of Danaus), being the son of Apollo, the god of the sun, and a priestess, and according to Athenaeus 8.37 he invaded Ashkelon and according to Strabo, the tribes of Mopsus invaded the Levant and settled Cilicia, Syria, and Phoenicia.
It is clear that the Greeks received mythic traditions from the Levant, particularly through the Phoenicians who also contributed the alphabet. But the situation was already much more complex. In the thirteenth century B.C., the Levant was inundated with Aegean, Mycenaean, and other Mediterranean migrants whom the Egyptians referred to as the "Sea Peoples". Numbers 24:23-24 presents an oracle delivered against Og, the Rephaim king of Bashan, which alludes to this invasion:
And then there is the Israelite tribe of Dan which Yigael Yadin suggested was identical with the Danuna of Egyptian records and the Danaoi of the Greeks. First of all, Genesis 49:16, while designating Dan as a son of Jacob, simultaneously presents him as previously standing outside the tribes of Israel, and his characterization as a "serpent on the road, a viper on the path" recalls the fate of Cadmus and his wife who were transformed into snakes. Second, Judges 18:1 explicitly states that Dan had no inheritance among the tribes of Israel, and locates the Danites near Gath and Jaffa -- in other words, coastal territory near the Philistines. Egyptian records indicate that the Danuna Sea People also settled near Jaffa. No less astonishing is the fact that no genealogical lists are given in the OT for the tribe of Dan, nor details of the the conquest of cities in the southern heritage. Even more significant is the fact that the Song of Deborah, a genuinely archaic text from the tenth or eleventh century BC, asks, "Dan, why did he remain in ships?" (Judges 5:17). The implication is that the Danites were occupied with ships, as Reuben staying amid sheepfolds and Asher dwelling on the coast, and this again fits the view of the Danites as originally living on the coast as one of the settled Sea Peoples. And then there is Samson, the legendary hero of the tribe of Dan. He has very close ties with the Philistines, his first wife being a Philistine (Judges 14:1), he knows a prostitute in Gaza (16:1), and his second wife Delilah is a confidante of the Philistine leaders. But his heroic characterization in Judges, from his fantastic strength to his aptitude with riddles and exploits, and especially his name and those of cities in his vicinity (cf. Samson < West Semitic sms "sun", the cities Ir-Shemesh and Har-Heres), suggests a connection with mythological sun-heroes like Hercules, Perseus, and Mopsus. For instance, Mopsus was the son of Apollo, the god of the sun, and is best known for his outstanding use of riddles. One of the stories connected with him records a riddle contest between him and the prophet Calchas which resulted in his victory and the prophet's death. All this closely recalls Samson's obsession with riddles in Judges 14:12-20. The parallels between Samson and Hercules are also well-known and suggest that either Samson is a Levantine version of the Greek heroes (hardly surprising if the Danites were of Greek origin, as Genesis 10:4 also suggests) or that Hercules and Mopsus are Greek versions of Levantine heroes (again, hardly surprising considering the extensive influence of Canaanite and Phoenician legends on Greek mythology).
Is it then possible that the Titans and the demi-gods of Greek mythology derive from the Rephaim of Canaanite legend? We should first note that Greek Titanos is the phonetic equivalent of the Didan (Didanites) of the Ugaritic texts. As for the god Rapiu/Rapha, his name plausibly corresponds to Orpheus, the son of Calliope and Apollo, who numbered as one of the Argonauts and who descended to the netherworld to find his dead wife. He was also a god of music, which recalls how the cult of Rapiu specialized in honoring their ancestor with music (see KTU 1.108 above). Moreover, he was regarded as the founder of the Orphic cult which venerated snakes (a possible link to Cadmus and the Phoenician snake-cult?) and looked to the demi-god Dionysius as the source of all good, born of a union between Zeus and the human woman Semele of Thebes. And the preceding discussion has shown that other demigods such as Cadmus are definitely of West Semitic origin. So it appears a plausible case can be made linking the Greek traditions with the similar West Semitic legends about the Rephaim.
5. THE DIDANITES: AN AMORITE TRIBE OF THE THIRD MILLENIUM BCThe last great Sumerian dynasty, the Third Dynasty of Ur (2100-2000 BC), gradually lost control over surrounding city-states until the last king, Ibbi-sin, was hardly more than a local ruler. The collapse of Ur began when Ishbi-irra, a military officer from the Amorite city of Mari (on the middle Euphrates in northwestern Mesopotamia), established himself as king in Isin and extended his control over much of northern Sumer. The end came a few years later (c. 2000 BC) when the Elamites invaded and sacked Ur, and led Ibbi-sin into captivity. The Amorites are first mentioned in a record (c. 2200 BC) from the Akkadian king Shar-kali-sharri who mentions a victory "over the Amorites in the mountain of Ba-sa-ar," who appear to have been the local seminomadic rural population along the middle Euphrates. Onomastatic evidence shows that the Amorites were speakers of a Northwest Semitic language related to Aramaic or Canaanite. The Sumerians during Ur III knew them as MAR.TU "Westerners," and by the end of Ur III, Mari had a predominantly Amorite population. With the fall of Ur, Amorites flooded into all parts of Mesopotamia. State after state were taken over by them and by the eighteenth century B.C. virtually every state in Mesopotamia was ruled by Amorite kings. Two of these Amorite states, Isin and Larsa, engaged in a long rivalry, and ca. 1850 BC an Amorite named Sumu-abum established the first dynasty of Babylon, a previously obscure town, and by the eighteenth century the Old Babylonian empire held sway in southern Mesopotamia. The Amorites also began to settle the Levant around 1850 BC; this was when western Palestine, Syria, and later all of Palestine experienced a vigorous resurgence of fortified cities and population growth (as both archaeological evidence, Egyptian Execration texts, and the Tale of Sinhue indicate), though the central and southern hill country continued to be thinly settled throughout the Middle Bronze Age. That these newcomers were Amorites seems fairly certain, as onomastatic evidence shows. This period was also the time of the golden age of Mari in upper Mesopotamia, whereas Assyria emerged as a fledgling city-state opposed to the Amorites and culturally Akkadian. But the Babylonian dynasty crumbled in the sixteenth century BC through Kassite and Hittite expansion, and Mari collapsed as well through the growth of Hurrian, Hittite, and Assyrian empires. By this time, the great Amorite age has ended. To the Israelite and Judeans writing the source documents of the Pentateuch, the Amorites were only a vague distant memory.
I believe the patriarchal traditions of the Pentateuch preserve memories of the Amorite origin of the Canaanites. It is remarkable that the Semite geneology of Abram, given in Genesis 10:21-25 (J) and 11:10-26 (P), almost entirely reflects toponyms in Upper Mesopotamia: Arpachshad (cf. the Assyrian district of Arapaha, possibly identical with the Arrapakhitis mentioned in Ptolemaeus 6.1.2 as a province near Armenia between lakes Van and Urumia), Peleg (cf. Assyrian palgu "canal" and Phalga, at the junction of the Charboras and the Euphrates), Shelah (cf. Salah in northern Mesopotamia), Reu (cf. Ru'ua, an Aramean tribe frequently mentioned in Assyrian inscriptions as dwellers on the banks of the Euphrates and Tigris near Babylon), Serug (cf. Sarug, a well-known city and district midway between Carchemish and Harran, and Sarugi as the name of a district near Harran in inscriptions from the seventh century BC), Nahor (cf. Til-Nahiri in the neighborhood of Sarugi), and Terah (cf. Til-sha-turahi, a town near Harran). The last three are especially important since they are neighborhoods around Harran, which Genesis 11:31-32 designates as the city where Abram's family lived after Ur, and stories of Isaac in Genesis 24 and Jacob in ch. 28 shows that the patriarchs were viewed as maintaining links with the cities of Harran and Nahor and journeying back and forth between Canaan and the homeland beyond the Euphrates. Harran was later an Assyrian capital, but in the mid-second millenium BC it was an Amorite province. Other names in the patriarchal narratives are of Amorite provenience: "Abiram" and "Ishmael" are known from Mari texts, Banu-yamina "Benjamin" appears in the Mari texts as a large confederation of tribes, Ya'qub-el "Jacob" occurs in an eighteenth-century text from Chagar-bazar in Upper Mesopotamia, while "Issachar" occurs in an eighteenth-century Egyptian list of Semite foreigners and "Zebulon" occurs in the Execration Texts. Since the Canaanites of the Late Bronze Age were ancestrally related to the Amorites of the Middle Bronze, it would not be surprising if traditions of an origin in Upper Mesopotamia lingered onward into the Iron Age.
So who are the Didanites identified by Ugaritic Canaanites with the Rephaim? We may note that the Assyrian King List numbers a Didanu among the first seventeen "kings who lived in tents" (COS 1.135), and similar lists for the Old Babylonian kings of Hammurabi and Shamshi-Adad I trace the royal lineage back to someone named Ditanu. The name also became a royal suffix in names from the Old Babylonian period, meaning something like "prince," and occuring in names such as Ammuditana and Sumuditana. The Sumerian poem The Descent of Inanna to the Netherworld alludes the "vile people of Didanum" as a threat to the Inanna temple in Umma, and several Sumerian texts refer to a tribe of MAR.TU called Tidanum or Tidnum that eventually threatened Sumerian interests in southern Mesopotamia. Gudea, king of Lagash (c. 2140 BC), mentioned Ti-da-num HUR.SAG MAR.TU, "the Amorite mountain of Tidanum" as a source of marble or alabaster, which corresponds to Hamrin range, or a part thereof -- which recalls the epithet of Danel as a Harnamite man. But Gudea also refers to Jebel Bisri (a favorite abode of nomads) as "the mountain of the Amorites," which is the same "mountain of Ba-sa-ar" that the earlier Akkadian king Shar-kali-sharri located his victory over the Amorites. This fact is especially intriguing because Jebel Bisri is located just south of the Habur Valley and Habur owes its name to ancient Haburatum, located near Jebel Bisri near modern Hasekah at the great bend of the Habur, and according to the Keret Epic, King Keret (a descendent of the Didanites) was ruler of the "House of Habur," evidently in exactly the same region Gudea located the "mountain of the Amorites" and the "Amorite mountain of Tidanum". Shu-Sin, a king of the Third Dynasty of Ur (c. 2030 BC), described his battles with the Tidnum and the Yahmatu in the Trans-Tigris and built a large defensive wall in central Mesopotamia for the express purpose of keeping out the MAR.TU. The most critical and endangered portion of the wall was called muriq-Tidnim "Fender of the Tidnum" which ran from the middle Tigris to Zimudar on the Diyala. It is also quite possible that since "Amorite" was a label given to them by Sumerian and Akkadian outsiders, the Amorites may have called themselves the Didanum. In any event, the term originally referred to an actual people living in the rural lands near Mari and towards the north who were in a sense the precursors of the Amorite empire of the early second millenium. In a sense, the Ugaritic writers used the name Didanites in a vaguely mythical way just as the later Israelites used the more recent names Hittites and Horites without having a clear sense of identity of the peoples. All the Canaanites knew was that Didanites preceded them and were associated somehow with royal dynasties. As for the god Rapiu, there is copious evidence of him among the Amorites and earlier at Ebla in the third millenium BC. The name Hammurabi, belonging to the most famous king of the Old Babylonian period, means "Rapi is my kinsman" (< Amorite 'ammu rapi'), or "My kinsman is a healer," with rp' "healer" as the verbal root. d Rabu occurs as a prominent god as Ebla, which is the equivalent to Ugaritic rp'u, and Robert Stieglitz shows that his epithet mlk "king," prominent in Ugaritic texts, also occurs frequently in Ebla with reference to the Rpu deity, and suggests that the Phoenician royal god Melqart "King of the City" (and the biblical Molech, cf. 1 Kings 11:7) was an Iron Age survival of the god. In this connection, it is interesting that Melqart was regularly identified with the Greek hero Heracles in the Phoenician period, and according to Hesychios, Heracles was worshipped at the Cyprus under the name Malika. The name of the angel Raphael (< rp' 'l "God is a healer," or "Rapha is god") in Jewish religion raises the question of a connection as well. Moreover, Rapiqu occurs in the first millenium BC in a stele of Tukulti-Ninurta I as the name of a land in Amorite territory: "I brought under one command the lands Mari, Hana, Rapiqu, and the mountains of Ahlamu" (ARI 1:775), the latter reference to none other than the Jebel Bisri mountains. The name Rapiqu or Rapiqum is undoubtedly as ancient as Mari and Hana and likely stretches back into the third millenium BC as an Amorite or proto-Amorite ethnonym or toponym. But the belief in deified Rephaim-like ancestors evidently stretches back to the third millenium as well. Robert Stieglitz points out that in Ebla (c. 2400 BC), deceased kings were worshipped in a ritual performed in the garden or cemetary of the palace, where sheep would be offered to the dead kings. Two of these deities were named Kura and Barama. Curiously, the deified kings are called ga-ti-mu "former ones" in the Eblaite texts. In KTU 1.161, the Ugaritic Rephaim text, the shades are often called rp'm qdmym "ancient Rephaim," where qdmym also means "former ones".
So the religion surrounding the Rephaim is very ancient, but the memory of the Rephaim in Ugarit and perhaps even in the OT appear to relate to the ancestors of the Amorite dynasts of the early second millenium BC.