"Ancient Egyptian literature was written in the Egyptian language from ancient Egypt's pharaonic period until the end of Roman domination. It represents the oldest corpus of Egyptian literature. Along with Sumerian literature, it is considered the world's earliest literature.
Writing in ancient Egypt—both hieroglyphic and hieratic—first appeared in the late 4th millennium BC during the late phase of predynastic Egypt. By the Old Kingdom (26th century BC to 22nd century BC), literary works included funerary texts, epistles and letters, hymns and poems, and commemorative autobiographical texts recounting the careers of prominent administrative officials. It was not until the early Middle Kingdom (21st century BC to 17th century BC) that a narrative Egyptian literature was created. This was a "media revolution" which, according to Richard B. Parkinson, was the result of the rise of an intellectual class of scribes, new cultural sensibilities about individuality, unprecedented levels of literacy, and mainstream access to written materials. However, it is possible that the overall literacy rate was less than one percent of the entire population. The creation of literature was thus an elite exercise, monopolized by a scribal class attached to government offices and the royal court of the ruling pharaoh. However, there is no full consensus among modern scholars concerning the dependence of ancient Egyptian literature on the sociopolitical order of the royal courts.
Middle Egyptian, the spoken language of the Middle Kingdom, became a classical language during the New Kingdom (16th century BC to 11th century BC), when the vernacular language known as Late Egyptian first appeared in writing. Scribes of the New Kingdom canonized and copied many literary texts written in Middle Egyptian, which remained the language used for oral readings of sacred hieroglyphic texts. Some genres of Middle Kingdom literature, such as "teachings" and fictional tales, remained popular in the New Kingdom, although the genre of prophetic texts was not revived until the Ptolemaic period (4th century BC to 1st century BC). Popular tales included the Story of Sinuhe and The Eloquent Peasant, while important teaching texts include the Instructions of Amenemhat and The Loyalist Teaching. By the New Kingdom period, the writing of commemorative graffiti on sacred temple and tomb walls flourished as a unique genre of literature, yet it employed formulaic phrases similar to other genres. The acknowledgment of rightful authorship remained important only in a few genres, while texts of the "teaching" genre were pseudonymous and falsely attributed to prominent historical figures.
Ancient Egyptian literature has been preserved on a wide variety of media. This includes papyrus scrolls and packets, limestone or ceramic ostraca, wooden writing boards, monumental stone edifices and coffins. Texts preserved and unearthed by modern archaeologists represent a small fraction of ancient Egyptian literary material. The area of the floodplain of the Nile is under-represented because the moist environment is unsuitable for the preservation of papyri and ink inscriptions. On the other hand, hidden caches of literature, buried for thousands of years, have been discovered in settlements on the dry desert margins of Egyptian civilization."
(from Wikipedia)
Pyramid Texts
"The Pyramid Texts are the oldest ancient Egyptian funerary texts, dating to the late Old Kingdom. They are the earliest known corpus of ancient Egyptian religious texts. Written in Old Egyptian, the pyramid texts were carved onto the subterranean walls and sarcophagi of pyramids at Saqqara from the end of the Fifth Dynasty, and throughout the Sixth Dynasty of the Old Kingdom, and into the Eighth Dynasty of the First Intermediate Period.
The oldest of the texts have been dated to c. 2400–2300 BC. Unlike the later Coffin Texts and Book of the Dead, the Pyramid Texts were reserved only for the pharaoh and were not illustrated.
The use and occurrence of Pyramid Texts changed between the Old, Middle, and New Kingdoms of Ancient Egypt. During the Old Kingdom (2686 BCE – 2181 BCE), Pyramid Texts could be found in the pyramids of kings as well as three queens, named Wedjebten, Neith, and Iput. During the Middle Kingdom (2055 BCE – 1650 BCE), Pyramid Texts were not written in the pyramids of the pharaohs, but the traditions of the pyramid spells continued to be practiced. In the New Kingdom (1550 BCE – 1070 BCE), Pyramid Texts were found on tombs of officials."
(from Wikipedia)
Introduction to a book titled "The Organization of the Pyramid Texts":
"Beginning about two centuries before the end of ancient Egypt’s Old Kingdom, hieroglyphic religious texts were inscribed upon the interior walls of the pyramid tombs of kings and queens. The first king whose subterranean crypt was decorated in this way was named Unas, and his last year of reign was about 2345 bce. His pyramid complex and those of his successors were built in the great necropolis of Saqqara, which had been the favored place for royal burials already for three centuries. Egypt’s capital, Memphis, sat below the desert necropolis on the Nile, where the narrow Nile Valley opened up to the broad expanses of the Delta, Lower Egypt.
The texts were symbolically connected with the afterlife state of the tomb’s occupant. The expectation was that he would become an Akh, a transfigured ‘spirit,’ and the texts celebrated the present and future achievement of that condition. The corpus consists of just over nine hundred compositions of varying lengths. None of the pyramids contains all of them, and no two pyramids preserve exactly the same texts."
The Organization of the Pyramid Texts