The invention discloses a steel structure with an anti-corrosion function and an anti-corrosion process of the steel structure, and belongs to the technical field of steel structure assemblies, the steel structure with the anti-corrosion function comprises a left connecting piece, a right connecting piece, a transverse frame beam and a longitudinal frame beam. An upper lock hole and a lower lock hole are formed in the surface of the side, close to the left connecting piece, of the right connecting piece, the lock block is located between the upper lock hole and the lower lock hole, and the lock block, the upper lock hole and the lower lock hole are movably connected together through a fixing rod. The joints of the transverse frame beams and the longitudinal frame beams are protected, the contact area with the outside is reduced, the possibility of being corroded by the outside environment is greatly reduced, through the four-layer anti-corrosion design, the anti-corrosion capacity of the steel structure is improved, the anti-corrosion performance is high, the adhesive force is high, the sealing performance is good after colloid film forming is enhanced, and the service life of the steel structure is prolonged. The permeability of water vapor and oxygen is reduced, and the service life of the steel structure is prolonged.