This paper reports the application of different mid-rise moment-resistant building frame adjacent to an excavation area and knowing the performance levels to describe the state of structures after being subjected to a certain hazard level. Three types of mid-rise moment-resisting building frames, including 6-storey, 9-storey and 12-storey buildings, are selected. Building frame is constructed on a sand soil with layers of different density, representing soil class c, according to the Egyptian code practice. Different excavation depths, including 4m, 8m, and 12 m, are employed in the numerical modeling using finite difference software FLAC 2D. The above mentioned frame has been analyzed under two different boundary conditions: (i) flexible base (considering soil – structure interaction) without excavation and (ii) flexible base (considering soilstructure interaction) adjacent to excavation area. Elastic dynamic analyses under the influence of earthquake records for the three excavation depths previously mentioned are conducted. The results of the maximum lateral deflections and the inter-story drifts are used to determine the safe distance between the building frame and an excavation area. The results show that the increase in the excavation depth, structure height, and the decrease in the distance between the building and the excavation dramatically shift the pre-designed limit state of the structure from the life safety limit state to the collapse state under an anticipated earthquake action.