This study explored the development of photocatalytic heterostructures via the P-N junction formation between TiO2 and AgO. TiO2 thin films were fabricated on glass substrates through dip coating. Subsequently, photodeposition of AgO was achieved under sunlight irradiation using varying AgNO3 concentrations (0.5-2.5g/L). The films were characterized using XRD, SEM, EDX, UV-vis, and water droplet tests. Samples with concentrations below 2g/L uniquely exhibited the anatase phase, while a significant prominence of AgO was observed in the film prepared with a 2g/L AgNO3 concentration. Silver nitrate contamination loads had a significant impact on the particle size and the overall morphological characteristics of the heterojunctions. The band gap values were 3.52eV for the anatase substrate, whereas the band gaps of the photodeposited films decreased from 2.44 to 1.98eV. Despite all films being hydrophilic, a rise in water droplet contact angle was observed in the heterojunctions compared to the pure TiO2. Photodegradation of methylene blue under sunlight irradiation demonstrated exceptional efficiency (>90%) for the 2g/L AgNO3 heterojunction in 6hours, maintaining high photocatalytic activity over multiple cycles (>77%). This same configuration achieved a 50% degradation of amoxicillin within 2hours. This investigation addresses water contamination issues while offering a straightforward production method for efficient P-N junction co-catalysts.