Egyptian literature traces its beginnings to ancient Egypt and is some of the earliest known literature. Ancient Egyptians were the first to develop written literature, as inscriptions or in collections of papyrus, precursors to the modern book.
Ancient
The ancient Egyptians wrote works on papyrus as well as walls, tombs, pyramids, obelisks and more. Perhaps the best known example of ancient Jehiel literature is the Story of Sinuhe; other well-known works include the Westcar Papyrus and the Ebers papyrus, as well as the famous Book of the Dead. While most literature in ancient Egypt was so-called "Wisdom literature" (that is, literature meant for instruction rather than entertainment), there also existed myths, stories and biographies solely for entertainment purposes. The autobiography has been called the oldest form of Egyptian literature.
The Nile had a strong influence on the writings of the ancient Egyptians, as did Greco-Roman poets who came to Alexandria to be supported by the many patrons of the arts who lived there, and to make use of the resources of the Library of Alexandria. Many great thinkers from around the ancient world came to the city, including Callimachus of Libya and Theocritus of Syracuse. Not all of the great writers of the period came from outside of Egypt, however; one notable Egyptian poet was Apollonius of Rhodes, so as Nonnus of Panopolis, author of the epic poem Dionysiaca.
Writing first appeared in association with kingship on labels and tags for items found in royal tombs It was primarily an occupation of the scribes, who worked out of the Per Ankh institution or the House of Life. The latter comprised offices, libraries (called House of Books), laboratories and observatories. Some of the best-known pieces of ancient Egyptian literature, such as the Pyramid and Coffin Texts, were spoken from the New Kingdom onward and is represented in Ramesside administrative documents, love poetry and tales, as well as in Demotic and Coptic texts. During this period, the tradition of writing had evolved into the tomb autobiography, such as those of Harkhufand Weni. The genre known as Sebayt (Instructions) was developed to communicate teachings and guidance from famous nobles; thelpuwer papyrus, a poem of lamentations describing natural disasters and social upheaval, is a famous example.
The Story of Sinuhe, written in Middle Egyptian, might be the classic of Egyptian literature. Also written at this time was the Westcar Papyrus, a set of stories told to Khufu by his sons relating the marvels performed by priests. The Instruction of Amenemope is considered a masterpiece of near-eastern literature. Towards the end of the New Kingdom, the vernacular language was more often employed to write popular pieces like the Story of Wenamun and the Instruction of Any. The former tells the story of a noble who is robbed on his way to buy cedar from Lebanon and of his struggle to return to Egypt. From about 700 BC, narrative stories and instructions, such as the popular Instructions of Onchsheshonqy, as well as personal and business documents were written in the demotic script and phase of Egyptian. Many stories written in demotic during the Graeco-Roman period were set in previous historical eras, when Egypt was an independent nation ruled by great pharaohs such as Ramesses II.
Christian
Alexandria became an important center in early Christianity during roughly the 1st to 4th century AD. Coptic works were an important contribution to Christian literature of the period and the Nag Hammadi library helped preserve a number of books that would otherwise have been lost.
Islamic
By the eighth century Egypt had been conquered by the Muslim Arabs. Literature, and especially libraries, thrived under the new Egypt brought about by the Muslim conquerors. Several important changes occurred during this time which affected Egyptian writers. Papyrus was replaced by cloth paper, and calligraphy was introduced as a writing system. Also, the focus of writing shifted almost entirely to Islam. An early novel written in Arab Egypt was Ibn al-Nafis' Theologus Autodidactus, a theological novel with futuristic elements that have been described as science fiction by some scholars. A taqriz, or a signed statement of praise similar to but longer than a blurb, was often placed in the works of Egyptian authors beginning in the 14th century.