Two compounds were prepared: cadmium oxide/cobalt oxide (referred to as oxide A) and silver decorated cadmium oxide/cobalt oxide (referred to as oxide B). Yttrium aluminium garnet (Nd:YAG) lasers, doped with neodymium, were used to irradiate the samples at 532 nm and 1064 nm. The effect of the Nd:YAG laser on the morphological, optical, structural, and antibacterial properties was investigated. The XRD data shows that both oxides are polycrystalline, and the laser irradiation increases the crystal size. Additionally, scanning electron microscopy results (SEM) show that particle size increases with laser irradiation and laser wavelength. While both oxides expand under the influence of a laser, oxide A has a larger optical band gap than oxide B. The intensity of PL increases with the pulsed laser effect and the addition of Ag. The antibacterial test shows that silver is quite effective in eliminating germs and other harmful microbes for human health. Moreover, the results show that, after adjusting the other laser parameters, the wavelength of 1064 nm performed better compared to the wavelength of 532 nm in pure water.