In the Sichuan Basin, the drilling of complex deep and ultradeep wells is restricted by the casing sequence. Multiple pressure systems are usually encountered in the same open hole section, and narrow safety density window is observed in vertical strata. The application of managed pressure drilling (MPD) technique which is often used in well drilling ensures the safe and efficient drilling, but it also brings about great challenges to the small-gap liner cementing at the lower part. Therefore, it is of great practical significance to research a cementing technology that can not only satisfy the quality requirement of small gap liner cementing, but also ensure the safe cementing in the strata with narrow safety density window. In this paper, a cementing technology based on precise managed pressure balancing method was proposed by referring to the successful application of MPD technique. According to the cementing design, the hydrostatic column pressure of annulus fluid is under-balanced (slightly lower than the formation pore pressure), and then a precise managed pressure drilling device is adopted to produce back pressure through wellhead restriction or apply wellhead compensation pressure, so that the balanced pore pressure can be reached in the process of cementing via the wellhead pressure and the flow friction of fluid in the annulus. After the cementing is completed, a certain compensation pressure is applied to the annulus continuously to prevent annulus channeling during waiting on cement caused by insufficient static pressure and slurry weight loss. After this technology was applied to an ultradeep exploration well in the Sichuan Basin, the qualification rate of borehole cementing quality reached 97%, and the well sections with good cementing quality accounted for 76%. In conclusion, this technology needs no additional equipment, and only by virtue of the MPD equipment, it can achieve safe cementing construction and cementing quality improvement under high displacement efficiency.