Optoelectronic memristor is a promising candidate for future light-controllable high-density storage and neuromorphic computing. In this work, light-tunable resistive switching (RS) characteristics are demonstrated in the CMOS process-compatible ITO/HfO2/TiO2/ITO optoelectronic memristor. The device shows an average of 79.24% transmittance under visible light. After electroforming, stable bipolar analog switching, data retention beyond 104 s, and endurance of 106 cycles are realized. An obvious current increase is observed under 405 nm wavelength light irradiation both in high and in low resistance states. The long-term potentiation of synaptic property can be achieved by both electrical and optical stimulation. Moreover, based on the optical potentiation and electrical depression of conductances, the simulated Hopfield neural network (HNN) is trained for learning the 10 × 10 pixels size image. The HNN can be successfully trained to recognize the input image with a training accuracy of 100% in 13 iterations. These results suggest that this optoelectronic memristor has a high potential for neuromorphic application.