Ground moving targets will typically be defocused because of the range migration (RM) and Doppler frequency migration (DFM) caused by the unknown relative motions between the platform of synthetic aperture radar (SAR) and the ground moving targets. The received signal of the ground moving target easily exhibits the Doppler ambiguity, and the Doppler ambiguity leads to the refocusing difficulty of ground moving targets. To address these problems, a SAR refocusing method of ground moving targets with Doppler ambiguity based on modified second-order keystone transform (MSOKT) and keystone transform (KT) is presented in this paper. Firstly, the second-order phase is separated by the time reversing process. Secondly, MSOKT is performed to compensate the range curvature migration and DFM, and then the coefficient of the second-order phase is estimated. Finally, a well-refocused result of the moving target is achieved after KT and the estimated Doppler ambiguity number are used to eliminate residual range walk migration. The proposed method can accurately remove RM and DFM and effectively focus the moving targets without residual correction errors. Moreover, the effects of Doppler ambiguity (including Doppler center blur and spectrum split) and blind speed sidelobe are further avoided. On the basis of the analysis of cross-term for the multiple target case, the identification strategy of spurious peak of cross-term is proposed. Additionally, the developed method can be sped up by nonuniform fast Fourier transform without the interpolation operation. The effectiveness of the proposed method is verified by both airborne and spaceborne real data processing results.