|Silver-titania nanocomposites (Ag-TiO2 NCs) have unique functional attributes due to their photocatalytic and antibacterial properties. In this study, titania nanoparticles (TiO2-NPs) were successfully in-situ decorated with silver nanoparticles (Ag-NPs) using the aqueous extract of goji berries (Lycium barbarum L.) as a bioreducing and stabilizing agent. Different Ag-TiO2 NCs were synthesized by treating different concentrations of silver nitrate with a specific concentration of TiO2-NPs in the presence of fruit extract. The green-synthesized NCs were characterized using several techniques viz., ultraviolet–visible spectrophotometry, X-ray diffractometry (XRD), scanning electron microscopy, field-emission transmission electron microscopy (FE-TEM), Fourier transform infrared spectroscopy, and X-ray photoelectron spectroscopy. XRD analysis revealed the formation of face-centered cubic (fcc) crystals, and FE-TEM analysis revealed the embedment of Ag-NPs throughout the surface of TiO2-NPs. The average size of Ag-NPs on TiO2-NPs increased from 11.2 ± 3.05 nm to 16.4 ± 4.5 nm with an increase in the concentration of silver ions, and the morphology of Ag-NPs was predominantly quasi-spherical and hexagonal. These NCs exhibited an excellent photocatalytic degradation of an azo dye, methylene blue (MB). The synthesized Ag-TiO2 NCs (3:1) showed higher photocatalytic degradation efficiency of ∼ 93.4% for MB in 130 min under visible light irradiation. Ag-TiO2 NCS also exhibited good antibacterial activities towards Staphylococcus aureus (Gram-positive) and Escherichia coli (Gram-negative). Therefore, the formation of Ag-NPs on the surface of TiO2-NPs to form Ag-TiO2 NCs exhibits eco-friendly photocatalytic degradation of azo dye contaminants as well as antibacterial activity.