In order to address the problems of range ambiguity and azimuth ambiguity in the wide-swath imaging of synthetic aperture radar (SAR), this paper proposes a multi-beam SAR two-dimensional ambiguity suppression method based on azimuth phase coding (APC). The scheme employs an elevation simultaneous multi-beam transmission system with azimuth under-sampling, transmitting different APC waveforms to various range-ambiguous sub-regions. After receiving the echoes, the azimuth digital beamforming (DBF) is used to separate the APC waveform echoes with multi-order Doppler ambiguity, achieving azimuth reconstruction and range ambiguity suppression simultaneously. Finally, the elevation nulling DBF is used to further suppress range ambiguity and obtain the SAR wide-swath image. The superiority of this scheme is reflected in the following aspects: the azimuth DBF simultaneously suppresses azimuth and range ambiguity, the influence of height fluctuations on the ability to suppress range ambiguity is weakened, the use of elevation nulling DBF further enhances the level of range ambiguity suppression, and different range sub-regions can adopt different range resolutions and working modes. The feasibility of this scheme is verified through theoretical analysis and simulation.