Doping is an effective way to improve the activity of photocatalysts. The effect of doping on the magnetic properties of some photocatalysts that are easily recycled was studied using the local spin density approximation (LSDA)+U method on typical divalent metal oxide semiconductors CuO, NiO, Ni-doped CuO, and Cu-doped NiO. It is found that the influence of Ni doping on the spatial structure of CuO and that of Cu doping on the spatial structure of NiO are negligible because of the similar radii of Ni2+ and Cu2+. The valence band and conduction band for Ni-doped CuO are clearly spin-split, corresponding to a net effective magnetic moment of µeff = 1.66 µB. This may improve the photocatalytic efficiency and raise the recycle rate of photocatalysts. In the Cu-doped NiO system, the presence of Cu 3d states near to the Fermi level increases the width of the valence band and narrows the band gap with respect to that in pure NiO. Beyond the Cu 3d states, within the band gap, appear two energy levels around the Fermi level, which may effectively separate the electron-hole pair and also lead to enhanced absorption of visible light and infrared light. It can be concluded that the observed changes in the band structure may be helpful for improving the activity of photocatalysts and the doped systems have net magnetic moments, meaning that they are easily recycled and can be reused.