An ancient scroll of the Torah shows a fragment of the Book of Exodus.

Who really wrote the Old Testament? These are the theories.

When analyzing the oldest books of the Bible, scholars have identified the work of various writers and editors. But how did the final version come to be?

THE HEBREW BIBLEThis ancient scroll of the Torah—the first five books in the Hebrew Bible—shows a fragment of the Book of Exodus, which recounts how God gave the Tablets of the Law to Moses, who had led the Israelites from Egypt into the Promised Land.
PAOLO VERZONE/NATIONAL GEOGRAPHIC IMAGE COLLECTION
ByJavier Alonso López
Published March 30, 2026

Of the 24 books that make up the Hebrew Bible, the oldest are the five core books of the Torah: Genesis, Exodus, Leviticus, Numbers, and Deuteronomy, collectively known as the Pentateuch. They narrate the creation of the world and the history of the Jewish people up until their arrival at the Holy Land. In both Jewish and Christian traditions, these texts are believed to have been written by a single author: Moses, the patriarch who led the Israelites out of Egypt and to whom, according to the Book of Exodus, God (also known as Yahweh) revealed the Torah.

This sixth-century mosaic depicts Moses on Mount Sinai receiving the Law from Yahweh.
MOSES ON MOUNT SINAIThis sixth-century mosaic depicts Moses on Mount Sinai receiving the Law from Yahweh. Church of San Vitale, Ravenna.
SCALA, FLORENCE

But even in the early centuries of the Christian era, some doubted whether Moses really did write the five books of the Torah. And there are certain passages that don’t fit easily with, or support, the notion of him being the author, such as the one in Deuteronomy in which Moses recounts his own death: “Then Moses, the servant of the Lord, died there in the land of Moab, at the Lord’s command.” Another example is a line in the Book of Numbers that would be deeply ironic had it been written by Moses: “Now the man Moses was very humble, more so than anyone else on the face of the earth.”

Another curiosity is that throughout the Torah some episodes are recounted more than once, differing in focus and details, as if different versions by several authors had been combined.

View of the summit from Mount Sinai.
HOLY MOUNTAINView of the summit from Mount Sinai, on the Sinai Peninsula, which peaks at an altitude of 7,497 feet and is currently part of Egyptian territory.
BENNY MARTY/AGE FOTOSTOCK

The Book of Genesis includes two versions of the covenant that Abraham established with God to ensure himself numerous descendants and a new land to live in. One version, in chapter 17, stresses that to seal the covenant, God commanded: “Every male among you shall be circumcised.” But in the earlier version, narrated in chapter 15, there’s no mention of circumcision. The forthcoming birth of Isaac is also announced in two ways. In one version (chapter 17), God speaks directly to Abraham saying, “your wife Sarah shall bear you a son, and you shall call him Isaac.” But in chapter 18, the message comes through three heavenly beings who visit Abraham and Sarah.

Sometimes the work of more than one author appears intertwined in the same narrative. The most obvious case is that of Noah and the Flood. Verses include different details regarding the number of animals that should enter the ark (one pair of each species, or seven pairs of the “pure” and one pair of the “impure”) and whether a raven or dove was released to seek land.

In addition, analysis of the original Hebrew text reveals very different styles, expressions, and stages of language evolution. This is particularly evident in passages that include lines written in an archaic form of Hebrew. An analogy would be reading a text in English written partly in the style of Chaucer, partly in Shakespearean English, and partly in a contemporary style.

Although reasonable doubts had existed for a long time, the first modern writer to argue against Moses being the author of the Pentateuch was English philosopher Thomas Hobbes in his 1651 political treatise Leviathan. In 1753, the French physician Jean Astruc suggested the existence of two different authors in the Book of Genesis, and in 1780 the German theologian Johann Gottfried Eichhorn extended this claim to the entire Pentateuch.

(Why John the Baptist was once more famous than Jesus)

A painting of Lot and his daughters fleeing the destruction of Sodom.
SODOM BURNS IN THE WRATH OF GODLot and his daughters flee the destruction of the city, but Lot’s wife—who looked back—was turned into a pillar of salt. Oil painting by Jean-Baptiste-Camille Corot, 1857. Metropolitan Museum of Art, New York.
FINE ART/AGE FOTOSTOCK

The Yahwist

Finally, in 1878, German biblical scholar Julius Wellhausen formulated his “documentary hypothesis,” which is still widely accepted today or at least provides the starting point for any discussion of the dates and identities of authorship in the Torah. The documentary hypothesis maintains that within the first five books of the Bible, as they have come down to us, several different narrative strands can be distinguished that were written by different authors at different points in history and in different locations.

According to Wellhausen’s hypothesis, text from the oldest version of the Torah can be identified by certain common features. The most obvious is that God is referred to by the name Yahweh. Later, as established in the Book of Exodus, it would be forbidden by Israelite religious code to pronounce this name: “You shall not misuse the name of Yahweh your God.” (Note that English translations tend to render the name Yahweh as “the Lord.”) Another way to discern this oldest narrative strand is that the events chronicled—for example the destruction of Sodom and Gomorrah and the stories of Abraham and his nephew Lot—take place in the area around Jerusalem and in the mountains of Judah. The protagonists are the patriarchs of the 12 tribes that settled in those places: Reuben, Simeon, Levi, and Judah. The linguistic and narrative features of these sections have led to the theory that their author was a person connected with the Temple in Jerusalem when Jerusalem was the capital of the southern kingdom of Judah. Since Judah separated from the northern Jewish kingdom of Israel in 930 B.C., this author was likely writing around the 10th to ninth centuries B.C. The author has been dubbed the Yahwist for referring to God by the name Yahweh, and the source itself is known as “J,” short for the German word Jahwist.

The northern author

Other sections of the Pentateuch are distinguished by the fact that God is referred to as Elohim instead of Yahweh; scholars call this source text “E.” The sources J and E often recount the same episodes but include different narrative details. For example, while the author of J writes that God’s revelation to Moses occurred on Mount Sinai, the author of E calls the place Horeb. As these two names refer to the same geographical feature, this suggests that the site of the revelation once had two separate designations. The events narrated in E take place in the northern region—the kingdom of Israel, which remained independent until it was conquered by the Assyrians in 722 B.C. The protagonists in E are the patriarchs of the tribes that historically occupied territory in the kingdom of Israel, such as the tribe of Benjamin.

The Temple of Jerusalem is pictured.
THE TEMPLE OF JERUSALEMFrom the time of Solomon, the ark containing the Tablets of Law was kept inside the Temple.
BALAGE BALOGH/RMN-GRAND PALAIS

The sections of the Torah belonging to source E would once have formed a complete separate text, similar to J, but with its own characteristics. Clues in the text point to the author of E having lived in the ninth century B.C., in the northern kingdom of Israel. The reverence shown in the text toward Moses has led to the hypothesis that the author of E (sometimes known as the Elohist) was one of the priests of the sanctuary at Shiloh, which belonged to the tribe of Levi, where Moses also hailed from. This would explain why there’s no mention in E of the later tradition that made Aaron a brother of Moses, and why Aaron is harshly criticized in E for his participation in the creation of the golden calf, an idol made by the Israelites while Moses was on Mount Sinai with God.

Aaron, brother of Moses, in an icon from the Kirillo-Belozersky Monastery.
Aaron, brother of Moses, in an icon from the Kirillo-Belozersky Monastery, Russia.
SCALA, FLORENCE

Merging the texts

So, between the 10th and eighth centuries B.C., each of the two kingdoms,Judah and Israel, had its own collection of narratives about the origins of the world and its people. Although the same in essence, the two accounts differed in certain linguistic features, in the geographical settings of some episodes, and the prominence of certain tribes.

However, this situation changed in 722 B.C., when the kingdom of Israel was destroyed by the Assyrians, and part of its population sought refuge in neighboring Judah and its capital, Jerusalem. The refugees, who brought with them their own sacred text, were welcomed in Judah. Perhaps it was thought that in order to facilitate the integration of the new Israelite community, it would make sense to produce a common sacred text that combined the two previous ones. It’s believed that an unknown author undertook this task around 700 B.C., using J as a general framework, the version that had been accepted for centuries in Jerusalem where this fusing of texts was likely done.

(How did the walls of ancient Jericho fall? Archaeology offers a clue.)

View of the city of Jerusalem from a Jewish cemetery on the Mount of Olives.
THE HOLY CITYView of the city of Jerusalem from a Jewish cemetery on the Mount of Olives. In the background is the Temple Mount, dominated by the Dome of the Rock. The First and Second Temples were built on that site.
PIERRE WITT/GTRES

In the following decades, the priests of the Temple of Jerusalem promoted the writing of additional texts that clarified and completed the earlier merged version.In the sixth to fifth century B.C., an anonymous author made important additions to the composite text of J and E, adding a strand now identified by scholars as P (from the German Priesterschrift) or the “Priestly” source. These additions relate mainly to rituals of the Temple of Jerusalem. For example, P includes some details distinguishing between the pure and impure animals to go on Noah’s ark, even though at the time of the Flood, the Temple of Jerusalem and its purity laws didn’t exist yet. Source P, like source E, refers to God by the name Elohim—perhaps as a concession to the ancient version of the kingdom of Israel. But unlike E, P emphasizes the leadership of Aaron rather than Moses. This likely indicates that the author of P was a priest in the Temple of Jerusalem and considered himself a descendant of Aaron.

A painting of Abraham preparing to sacrifice his son Isaac.
Abraham prepares to sacrifice his son Isaac. Oil painting by Caravaggio. Circa 1603. Uffizi Gallery, Florence.
L. RICCIARINI/BRIDGEMAN/ACI

A few decades later, a major change would take place in the composition of the Torah, with the addition of a new book to the four that previously existed. In 622 B.C., while Josiah, king of Judah, was having the Temple remodeled, a new text was discovered there; it apparently contained an unknown part of the Law that God had dictated to Moses on Mount Sinai. This text was presented as a series of speeches by Moses himself while the rest of the Torah consists of the words that God dictated to him.Another major difference is that the author of this text insists there is just one God, one people, and one place of worship, namely the Temple of Jerusalem, and criticizes the other shrines scattered throughout the country. It seems the main aim of this newly discovered text was to encourage the centralization of religious life around the Temple in the capital, Jerusalem, and do away with other cultic centers.

The text was presented to King Josiah, who read it publicly in the Temple in front of all the people, priests, and prophets. When he’d finished, everyone pledged to obey the Law contained in the book, which was added as a supplement to the existing works. This text was regarded as a second Law, which is the meaning of its Greek name, Deuteronomy. The source is known by scholars as D. Some of the biblical books that recount the history of Israel and Judah from the time of David and Solomon onward may also belong to D. There are several distinguishing features in D: The author has a high opinion of Moses; the sacred mountain is called Horeb rather than Sinai; and the expression “Yahweh Eloheka”—which means “Yahweh your God,” combining the names used in J (Yahweh) and E (Elohim)—is used.

Out of the desert

In 586 B.C., the Kingdom of Judah, its capital Jerusalem, and its Temple were destroyed by the Babylonian ruler Nebuchadnezzar II. Part of the population of Judah was deported to Babylon where they remained in exile for decades until the Persian king Cyrus the Great allowed them to return to their land to rebuild their country and their Temple while enjoying relative political autonomy. Sometime after the return from exile, a final intervention was made in the text of the Torah, shaping it into the form we know today. A new author gathered the texts that had previously been dispersed across different works into a single volume, adapting them to give them unity.

Some scholars believe that this final author was Ezra, a Jewish scribe, expert in the Law of Yahweh, and an official of the Persian king Artaxerxes. Ezra was sent to reform the religious practice in Jerusalem, although there’s some uncertainty about when this reform happened. If the king referred to was Artaxerxes I, Ezra’s mission must have taken place shortly after 457 B.C., but if it was Artaxerxes II, it would have been in the fourth century B.C.

(What happened to the Ark of the Covenant? Here’s what we know.)

Ezra reads the Torah outside the Temple after the Judaeans return from exile.
THE HOLY BOOKEzra reads the Torah outside the Temple after the Judaeans return from exile in Babylon.
BALAGE BALOGH/RMN-GRAND PALAIS

The Book of Nehemiah explains how Ezra publicly presented this new Law, which was now compiled into a single corpus: “Accordingly, the priest Ezra brought the law before the assembly, both men and women and all who could hear with understanding ... He read from it facing the square before the Water Gate from early morning until midday, in the presence of the men and the women and those who could understand; and the ears of all the people were attentive to the book of the law.”

While the process of compiling the Torah seems to have ended with Ezra, the broader corpus we now call the Bible continued to evolve. Jewish priests granted the status of works revealed by God to other books that were part of the Jewish literary heritage. These included historical chronicles such as those of prophets Joshua, Samuel, and Kings; books attributed to latter prophets such as Isaiah, Jeremiah, and Ezekiel; and moral and poetic works such as Proverbs and the Song of Songs. All these texts formed the Jewish Bible, which in the first centuries after Jesus would become the core of the Christian Old Testament.

This story appeared in the March/April 2026 issue of National Geographic History magazine.