The invention relates to a building structure with an anti-seismic function. The building structure structurally comprises two wall bodies and a steel
coupling beam located between the two wall bodies. A mounting groove is formed in the top of the wall body, clamping blocks are arranged at the two ends of the steel
coupling beam respectively, the clamping blocks are placed in the mounting groove, anti-shear connecting pieces are connected to the clamping blocks in a penetrating mode, the anti-shear connecting pieces are connected to the mounting groove in a penetrating mode at the same time, the steel
coupling beam is divided into a left section and a right section, and the left section and the right section are connected through a steel beam. The two sections of steel coupling beams are connected with each other through an anti-seismic
assembly. When the shearing force exceeds a set threshold value, the preset shearing bolt is fractured to
cut off the connection between the steel
smelting beam and the wall body, the force is prevented from being continuously transmitted to the wall body, and the wall body is prevented from being damaged; the steel
coupling beam is subjected to plastic deformation through the corrugated structure of the mounting frame, stress is dispersed through the fold effect, local
stress concentration is reduced, and
seismic energy is dispersed and consumed. The shear-resistant connecting piece and the anti-seismic
assembly can be replaced independently, the repair cost can be reduced by dismounting and replacing damaged parts, and waste of materials is reduced.