In order to improve the corrosion resistance of welded joints, X90 pipeline steel joints were subjected to post-weld heat treatment at 610 °C, 640 °C, and 670 °C (holding time was 1 h). Through electrochemical corrosion and full immersion corrosion experiments, the corrosion resistance of welded joints under various conditions was tested, and the surface morphology and corrosion products of the corroded samples were analyzed by scanning electron microscopy and X-ray diffraction analysis. The experimental results show that the corrosion products of X90 pipeline steel welded joints in simulated soil solution mainly include Fe(OH)3, γ-FeOOH, α-Fe2O3, γ-Fe2O3, and a small amount of Fe3O4, FeCl3 and Fe. After heat treatment at 610 °C, the corrosion current density of the parent metal, heat-affected zone, and weld metal of the joint changes from 1.081, 2.889, 2.079 (×10−5 A cm−2) to 0.977, 2.211, 1.810 (×10−5 A cm−2), respectively, the corrosion resistance is improved.