Short answer
The pyramids survived for several practical and cultural reasons, not because nobody ever tried to damage them. Egypt came under Muslim rule in the 640s AD, and the pyramids were already about 3,000 years old. They are enormous, made of millions of heavy stone blocks, and they were not an active religious threat to anyone. Over the centuries, though, they were damaged, explored and quarried, mostly for practical reasons.
The premise needs adjusting
The question assumes that the pyramids were left untouched. That is not quite right. Several things happened to the monuments in the medieval period:
- Forced entry. According to traditional accounts, around the early 800s AD the caliph al-Ma’mun’s men broke into the Great Pyramid in search of treasure and hidden knowledge. The tunnel they cut is still used by visitors today.
- Stone removal. Much of the smooth outer limestone casing of the Great Pyramid and others was taken away over time and reused in construction, including in Cairo. The casing is mostly gone from the Great Pyramid except for a few stones near the base.
- An attempted demolition. Medieval Arabic chronicles describe a late-1100s effort, associated with Saladin’s son al-Aziz Uthman, to demolish the pyramid of Menkaure. The workers reportedly labored for months, did very little and left a visible scar, mainly on one side. The project was abandoned as too costly and slow.
So some people in Muslim-ruled Egypt did try to take the pyramids apart. The remarkable thing is how little they managed.
Why they survived
Scale and cost. A pyramid is almost solid stone. Taking one down requires organized labor for years, with no payoff. The failed attempt on Menkaure’s pyramid shows how impractical it was.
No requirement to destroy them. Islamic law did not call for the destruction of ancient ruins in Egypt, and the early conquerors were more interested in governing and taxing the country than in clearing old monuments. Pharaonic ruins were generally treated as part of the landscape.
Curiosity and scholarship. Medieval Muslim writers such as al-Maqrizi and Abd al-Latif al-Baghdadi described the pyramids in detail. Some of them found them impressive evidence of earlier civilizations. Legends circulated too, including stories of treasure and magic, and some writers linked them to biblical figures such as Joseph or Idris, or Hermes.
Reuse was easier. Local builders found it cheaper to take stone from the outer casing, or from nearby ruins, than to topple the whole structure.
Where the myth of destruction comes from
Some online claims suggest a policy of deliberately destroying Egypt’s ancient heritage, usually without evidence. Others exaggerate the opposite way, claiming that nothing was ever damaged. The record is mixed: individual rulers took stone or sought treasure, a few acts of vandalism were recorded, and the broad ancient landscape of Giza, Saqqara and Luxor survived. The Great Pyramid’s fate is part of a longer sequence of events, described in the history of the Giza pyramids in Egypt.
Modern Egypt treats the pyramids as protected heritage, and the question of who currently owns the Pyramids of Giza is answered by state ownership and legal protection.