The invention relates to an antibacterial coating layer and a preparation technology thereof. The antibacterial coating layer comprises 0.01% to 0.05% of Fe3O4 (ferroferric oxide)-doped TiO2 (titaniumdioxide) nanoparticles, and also comprises a fluoride acrylic emulsion, an epoxy resin emulsion, melamine, carbodiimide, a talcum powder, sodium polymethacrylate, water-borne color paste, trimethyl hydroxyl amyl alcohol isobutyric acid ester, propylene glycol, a high fatty acid ester compound, titanium dioxide, polyoxyethylene alkyl phenol ether, 1,2-benzisothiazolin-3-ketone, alkanolamine and water. The antibacterial coating layer is mixed by the components. The Fe3O4-doped TiO2 (titanium dioxide) nanoparticle is prepared from Ti(SO4)2 (titanium sulfate), Fe3O4, ammonia water, sodium dodecylbenzene sulfonic acid, nitric acid, hydrochloric acid and water through co-precipitation. Compared with the antibacterial coating layer containing pure TiO2 nanoparticles, the antibacterial coating layer has the advantages that the absorption spectrum is broader; the strong bacteria inhibiting and killing activity is realized under the visible light; a smaller amount of nanoparticles is requiredin the production process, and the cost is obviously reduced.