AgBr-Ag3PO4 nanostructures, prepared by an ionic liquid-assisted precipitation method, were used as the effective visible-light driven photocatalytic system for the treatment of wastewaters. The prepared samples were characterized by X-ray diffraction powder (XRD), Diffuse Reflectance Spectroscopy (DRS), Furrier transform infrared (FTIR) spectroscopy, Scanning Electron Microscopy (SEM), Transmission Electron Microscopy (TEM), and nitrogen adsorption-desorption isotherms (BET) methods. The photoactivity of the products was studied by degradation of rhodamine B dye and Staphylococcus aureus (S.aureus) gram positive bacteria. The photoreaction kinetics and mechanism over the nanostructures was investigated and according to the results, the kinetic of dye degradation was realized to be pseudo first order. Moreover, we observed that the bacterial regrowth was at the lowest level after the photocatalytic treatment. The photogenerated electron-holes reacted with the species in the solution and produced the reactive radicals such as OH•, HO2•, and O2•‾ which can attack to the organic pollutants and pathogenic microorganisms. The reuse ability tests indicated that the prepared nanostructures had considerable capacity for the photodegradation of the dye after 5 times of repeated using.