Carbon nitride (g-C
3N
4) prepared using thermal condensation of urea was pretreated by H
2O
2/NH
3·H
2O and used as support to obtain Fe/g-C
3N
4 catalyst via impregnation method. The catalytic performance of the catalysts both before and after modification was investigated in CO hydrogenation. Combining detailed characterizations, such as XRD, SEM, TEM, FT-IR, TG, CO
2-TPD, CO-TPD, H
2-TPR, contact angle measurement, and N
2 physical adsorption and desorption, we investigated the effects of surface pretreatment on the texture properties of Fe/g-C
3N
4 catalysts and the product distribution of CO hydrogenation. The results demonstrate that various pretreatment techniques have significant influences on the textural properties and catalytic performance of the catalysts. The prepared g-C
3N
4 with a typical honeycomb structure has strong interaction with highly dispersed Fe. Both before and after modification, the materials are hydrophilic, and the hydrophilicity is increased after treatment with H
2O
2 and NH
3·H
2O. Treatment with H
2O
2 enhances surface hydroxyl groups. NH
3·H
2O treatment improves surface amino groups, promotes CO adsorption, and facilitates the formation of Fe(NCN) phase. The surface basicity of all pretreated catalysts is enhanced. The water gas shift (WGS) reaction activity of the two-step modified catalyst Fe/AM-g-C
3N
4 was lower, and the CO
2 selectivity in CO hydrogenation was reduced to 11.61%. Due to the enhanced basicity of Fe/AM-g-C
3N
4, the secondary hydrogenation ability of olefins was inhibited to obtain higher olefin selectivity with
\rmC_2^=-\rmC_4^=\;s \;\rmof 32.37% and an O/P value of 3.23.