The bipolar resistive switching (RS) characteristics of the ZnO-based TiN/Al 2 O 3 /ZnO/Al 2 O 3 /TiN structure are investigated for flexible nonvolatile memory applications. Using a thin Al 2 O 3 buffer layer on both sides of the ZnO device shows uniform and eminently stable bipolar resistance switching characteristics. The device exhibits good RS with more than two orders of resistance ON-OFF ratio, retention of >10 4 s at 120 °C, good dc endurance >10 4 cycles, and high ac endurance of >10 8 cycles with 40-ns pulsewidth without any degradation. The device shows high mechanical stability when under 10 4 continuous repetitive flexible bendings, indicating that high endurance with a very small bending radius of up to 3 mm. The lower Gibbs free energy of the Al 2 O 3 (-1676 kJ/mol) film compared with the ZnO (-320.4 kJ/mol) and TiO 2 (-994 kJ/mol) films can improve the RS properties of the TiN/Al 2 O 3 /ZnO/Al 2 O 3 /TiN device. The significant improvement in the TiN/Al 2 O 3 /ZnO/Al 2 O 3 /TiN device is due to the reason that thin Al 2 O 3 layers on both sides of ZnO would help stabilize the local oxygen migrations for the formation and rupture of the conductive filament during the continuous switching cycles, resulting in high memory switching characteristics.