The invention relates to the building technology field, in particular to an earthquake proof foundation which consists of a foundation main body, a concrete cover plate, a foundation soleplate, a downward oblique bar layer, an upward oblique bar layer, an upward longitudinal bar layer, an upward transverse bar layer, a foundation pit soleplate, a retaining wall, a quenched steel cover plate, a quenched steel support plate and a quenched steel clapboard. The foundation main body is positioned in the foundation pit, the foundation soleplate is a horizontal quenched steel plate, four bar layers forming an angle with one another are arranged between the foundation soleplate and the foundation pit soleplate, each bar layer consists of a row of cylindrical quenched steel bars which are horizontally arranged and have gaps with each other, and one horizontally positioned quenched steel clapboard is arranged between every two adjacent bar layers. The retaining wall is positioned at the peripheral walls of the foundation pit, and spaces are remained between the retaining wall and the foundation main body as well as the downward oblique bar layer, the upward oblique bar layer, the upward longitudinal bar layer, the upward transverse bar layer and the edges of the quenched steel clapboard.