The paper studied the vibrations of the buildings on the sliding foundation with dry friction under the action of real earthquakes at the intensity of 8 and 9 on the MSK-64 scale. It was developed a unique algorithm for calculating the displacements, velocities, accelerations, and shear forces resulting from the simultaneous action of the horizontal and vertical components of the seismogram record. It was studied four-story and nine-story buildings under the set of the three earthquake records. It was shown that the use of a sliding foundation does not always lead to a significant reduction in the shear force on the building floors and that the vertical component of the seismic effect has a significant influence on the shear vibration of the building.