Ferroelectric HfO2-based materials have attracted extensive attention in the research of next-generation nonvolatile memories and logic devices due to their superior scaling properties and compatibility with the CMOS process. However, forming the ferroelectric metastable phase in the thin films of a few nanometers requires clamping of the top and bottom electrodes. As a result, the interface can significantly impact domain structure and polarization, leading to imprinting effects and non-uniform space charge distribution. Here, we have demonstrated how the interface affects the ferroelectric polarization in Hf0.5Zr0·5O2 (HZO) thin films produced by ALD and the physical mechanisms behind it. We found that by regulating the quantity of oxygen vacancy content at the top and bottom interfaces of TiN/HZO/TiN ferroelectric capacitors, it is possible to achieve inversion of polarization orientation. By using a spherical aberration-corrected transmission electron microscope and first-principles calculation, we identified that the internal electric field generated by the accumulation of oxygen vacancies at an interface and the asymmetrical electrostatic energy of the interfacial T-phase layer jointly play a role in the ferroelectric polarization orientation. Our results will significantly help the interface engineering of HfO2-based ferroelectric thin films and devices.