The invention discloses a preparation method of a composite photocatalytic material of porous nano Fe3O4-N doped with Ni/Zn-MOFs/g-C3N4. The method comprises the steps that firstly, urea is calcined to prepare a graphite-phase carbon nitride (g-C3N4) material; then, by adopting ferric chloride, sodium acetate and ethanediamine as raw materials and ethylene glycol as a solvent, a constant-temperature reaction is conducted at 180-220 DEG C for 5-7 h, centrifugal separation is conducted to form solids, and Fe3O4 nano particles with porous structures are obtained; then, zinc nitrate hexahydrate, nickel nitrate hexahydrate, the g-C3N4 material and the Fe3O4 nano particles are added to a mixed solution of N,N-dimethylformamide and ethylene glycol, and a mixed reaction solution is obtained; the mixed reaction solution is transferred to a stainless steel reaction kettle with a polytetrafluoroethylene lining, the temperature is increased to 140-160 DEG C, a constant-temperature reaction is conducted for 5-7 h, centrifugal separation is conducted to form solids, and the composite photocatalytic material of Fe3O4-N doped with Ni/Zn-MOFs/g-C3N4 is obtained. The composite photocatalytic material is of a core-shell structure, g-C3N4 is used as a core, porous nano Fe3O4-N is dispersed on a shell of Ni/Zn-MOFs doped with N, and the material has obvious photocatalytic activity.