The present invention discloses a building uncollapsed in an earthquake and designed with a ship shape and ballast stone principle, belongs to the field of earthquake resistance of buildings and mainly solves the problem of damage and collapse of buildings in an earthquake. In the present invention, a building base is designed as a structure of a ship appearance, metal or non-metal with heavier specific gravity is used as a ballast stone structure, and a round of buffer plate is constructed on the outer edge of a ship board, so that when the earthquake occurs, the buffer plate crushes a subjacent buffer construction body and absorbs most of the impact force generated by the earthquake, so as to protect the building from being damaged during the earthquake. The angle between the bottom surface of a foundation pit, with which the building makes contact after the impact force of the earthquake is absorbed by the buffer plate, is designed to be 45 to 60 degrees. The building does not exceed the above angle under any circumstances, which can ensure the safety of personnel, equipment and the building itself.