The invention relates to an artificial antibody type titanium dioxide (TiO2)/ boron-doped diamond (BDD) membrane electrode and a preparation method thereof, the electrode is in p-n heterostructure, the electrode uses boron-doped diamond (BDD) as a substrate, uniform dense fusiform TiO2 particles are on the surface of the BDD, the particle size of the TiO2 particles is 50-100nm, a modification layer with a thickness of 5 to 10 mum is formed by the densely covered TiO2 particles; the preparation method of the artificial antibody type titanium dioxide (TiO2)/ boron-doped diamond (BDD) membrane electrode is as follows: using of the boron-doped diamond as the substrate, low temperature liquid phase deposition of TiO2 with a target pollutant molecular imprinting on the surface of the substrate, and removal of target pollutant molecules. Compared with the prior art, the artificial antibody type titanium dioxide (TiO2)/ boron-doped diamond (BDD) membrane electrode prepared by the method both has the p-n heterostructure and target pollutant molecular recognition ability, has excellent photoelectrocatalytic integrative performance and high selectivity degradation ability, has the advantages of simple preparation process, can be effectively used for removal of organic pollutants with low concentration, low tendency to biochemistry and high toxicity, and has extensive economic and social benefits.