The idea of the rock-cut temple must have occurred to the Egyptians at an early period.

Between the hemi-speos and the isolated temple, the Egyptians created yet another variety, namely, the built temple backed by, but not carried into, the cliff. The temple of the sphinx at Gizeh, and the temple of Seti I. at Abydos, may be cited as two good examples. I have already described the former; the area of the latter (fig. 93) was cleared in a narrow and shallow belt of sand, which here divides the plain from the desert. It was sunk up to the roof, the tops of the walls but just showing above the level of the ground. The staircase which led up to the terraced roof led also to the top of the hill. The front, which stood completely out, seemed in nowise extraordinary. It was approached by two pylons, two courts, and a shallow portico supported on square pillars. The unusual part of the building only began beyond this point. First, there were two hypostyle halls instead of one. These are separated by a wall with seven doorways. There is no nave, and the sanctuary opens direct from the second hall. This, as usual, consists of an oblong chamber with a door at each end; but the rooms by which it is usually surrounded are here placed side by side in a line, two to the right and four to the left; further, they are covered by "corbelled" vaults, and are lighted only from the doors. Behind the sanctuary are further novelties. Another hypostyle hall (K) abuts on the end wall, and its dependencies are unequally distributed to right and left. As if this were not enough, the architect also constructed, to the left of the main building, a court, five chambers of columns, various passages and dark chambers--in short, an entire wing branching off at right angles to the axis of the temple proper, with no counterbalancing structures on the other side. These irregularities become intelligible when the site is examined. The cliff is shallow at this part, and the smaller hypostyle hall is backed by only a thin partition of rock. If the usual plan had been followed, it would have been necessary to cut the cliff entirely away, and the structure would have forfeited its special characteristic--that of a temple backed by a cliff--as desired by the founder. The architect, therefore, distributed in width those portions of the edifice which he could not carry out in length; and he even threw out a wing. Some years later, when Rameses II. constructed a monument to his own memory, about a hundred yards to the northward of the older building, he was careful not to follow in his father's footsteps. Built on the top of an elevation, his temple had sufficient space for development, and the conventional plan was followed in all its strictness.

Most temples, even the smallest, should be surrounded by a square enclosure or temenos.[][20]] At Medinet Habu, this enclosure wall is of sandstone-- low, and embattled. The innovation is due to a whim of Rameses III., who, in giving to his monument the outward appearance of a fortress, sought to commemorate his Syrian victories. Elsewhere, the doorways are of stone, and the walls are built in irregular courses of crude bricks. The great enclosure wall was not, as frequently stated, intended to isolate the temple and screen the priestly ceremonies from eyes profane. It marked the limits of the divine dwelling, and served, when needful, to resist the attacks of enemies whose cupidity might be excited by the accumulated riches of the sanctuary. As at Karnak, avenues of sphinxes and series of pylons led up to the various gates, and formed triumphal approaches. The rest of the ground was in part occupied by stables, cellarage, granaries, and private houses. Just as in Europe during the Middle Ages the population crowded most densely round about the churches and abbeys, so in Egypt they swarmed around the temples, profiting by that security which the terror of his name and the solidity of his ramparts ensured to the local deity. A clear space was at first reserved round the pylons and the walls; but in course of time the houses encroached upon this ground, and were even built up against the boundary wall. Destroyed and rebuilt century after century upon the self-same spot, the débris of these surrounding dwellings so raised the level of the soil, that the temples ended for the most part by being gradually buried in a hollow formed by the artificial elevation of the surrounding city. Herodotus noticed this at Bubastis, and on examination it is seen to have been the same in many other localities. At Ombos, at Edfû, at Denderah, the whole city nestled inside the precincts of the divine dwelling.