Atmospheric refraction in the troposphere causes the propagation speed of electromagnetic signals to be less than the light speed. This creates a difference between the actual propagation path delay and the distance of the geometrical straight-line path, i.e., a quantity known as the tropospheric delay. As classical imaging algorithms for spaceborne synthetic aperture radar (SAR) do not take the tropospheric delay into account, imaging filters are designed based on the assumption of rectilinear propagation with the light speed. Therefore, a residual phase exists in imaging results, which affects focusing quality under the condition of high resolution. In order to compensate for the impact of tropospheric delay on focusing performance, this paper modifies the spaceborne SAR echo model and then proposes an imaging compensation algorithm. The key to this algorithm is to fit a range delay coefficient based on the European Geostationary Navigation Overlay Service model of zenith delay and Niell mapping function, which projects the zenith delay onto the looking direction. After range compensation, classical imaging, and azimuth compensation, which compose the proposed algorithm, the processed results are well focused.