From the oldest dwelling to modern civic architecture, people always allocate space for the sacred. We’ve seen such examples like drawings on the cave walls, burrials in the mud houses, tumuluses, ziggurats to egypthian temples and pyramids, they are served to answer religious beliefs.
With afterlife obsession, the egypthians raised the religious architecture from the respected burrials to pyramids and temples which take a dominant part of the city planning. For instance a simple trial of making a abstract mountain to preserve the dead for the afterlife is ended up in building a pyramid with perfect surfaces and orientation. When they settled near a rocky mountain, such temples which have axial orietation and dominancy replaced with pyramids. For example, the axial orientation is clearly visible in the Temple of Hatshepsut and we can see additional architectural elements such as posts that carved like sculptures and long ceromonial paths. In such examples we can observe that variations of architectural elements; when we look at the Temple of Karnak within the axiality the sequence of symetrical spaces can be seen such as hypostyle halls which are large ceromonial spaces with alot of columns and pylons which are simply monumantilized gates.
Of course building such constructs like monumental burials and temples takes years and a lot of labor. In general egypthians batten on jew laborers who later on rised and left the egypthian lands and started settlement on palestine.