The formation of visible light-driven Ag/Ag2O photocatalyst with excellent property of photocatalytic activity and photocorrosion inhibition.