If the Egyptian pyramids were actually part of a larger structure what purpose would they have served?

I'm thinking anchor for space elevator