Iron modified carbon nitride (CN) materials have attracted widespread attention from researchers in different application fields. In this paper, single atom iron anchored CN (FeCN) with mid-gap states and n → π* electron transition was synthesized through low temperature secondary calcination. The mid-gap states introduce surface states capable of trapping photogenerated electrons, enabling FeCN to absorb photons with energies lower than its intrinsic optical bandgap. 10%FeCN also exhibits distinct optical absorption above 490 nm derived from the n → π* electron transition, which expand the visible light response range of photocatalysts and enhance electron transport ability. Additionally, the Fe-Nx site enhances the separation and transmission efficiency of photoexcited charges. The prepared 10%FeCN exhibits extremely high photocatalysis and photo-Fenton activity. Mercaptobenzothiazole (MBT) degradation rate of 10%FeCN is 3.47 times higher than CN, achieving a mineralization rate of 86.7% in 100 min. Additionally, the oxytetracycline hydrochloride (OTC) degradation rate of 10%FeCN in photo-Fenton reaction is 11.9 times higher than CN. After five cycles, this catalyst still has good reactivity, indicating its good stability.