Egyptology (from Egypt and Greek -λογία, -logia; علم المصريات) is the scientific study of ancient Egypt. The topics studied include ancient Egyptian history, language, literature, religion, architecture and art from the 5th millennium BC until the end of its native religious practices in the 4th century AD. A practitioner of the discipline is an "Egyptologist".
The earliest explorers of ancient Egypt were the ancient Egyptians themselves. Inspired by a dream he had, Thutmose IV led an excavation of the Great Sphinx of Giza and inscribed a description of the dream on the Dream Stele. Less than two centuries later, Prince Khaemweset, fourth son of Ramesses II, would gain fame for identifying and restoring historic buildings, tombs and temples, including pyramids; and has subsequently been described as the first Egyptologist.
Some of the first historical accounts of Egypt were given by Herodotus, Strabo, Diodorus Siculus and the largely lost work of Manetho, an Egyptian priest, during the reign of Ptolemy I and Ptolemy II in the 3rd century BC. The Ptolemies were very interested in the work of the ancient Egyptians, and many of the Egyptian monuments, including the pyramids, were restored by them. The Ptolemies also built many new temples in the Egyptian style. The Romans also carried out restoration work in Egypt.
Throughout the Middle Ages, travelers on s to the Holy Land would occasionally detour to visit sites in Egypt. Destinations would include Cairo and its environs, where the Holy Family was thought to have fled, and the great Pyramids, which were thought to be Joseph's Granaries, built by the Hebrew patriarch to store grain during the years of plenty. A number of their accounts (Itineraria) have survived and offer insights into conditions in their respective time periods.
Abdul Latif al-Baghdadi, a teacher at Cairo's Al-Azhar University in the 13th century, wrote detailed descriptions of ancient Egyptian monuments. Similarly, the 15th-century Egyptian historian al-Maqrizi wrote detailed accounts of Egyptian antiquities.