For the inverted organic solar cells (OSCs), the interface contacts between the ZnO electron transporting layer and the organic active layer play an important role in the device performance and stability. Since the solution-processed ZnO surface always contains some base or zinc salt contaminants, we explored how the surface pH conditions influence the performance and stability of the nonfullerene acceptor (NFA) cells. A tight relationship between the surface pH condition and the device performance and stability was established. Specifically, device performance and stability were improved by treating the ZnO films with acid solutions but worsened after base treatment. The large number of hydroxyl groups on the surface of the solution-processed ZnO films was proved to be the main reason for the surface pH condition-related performance, which caused oxygen-deficient defects and unfavorable vertical phase separation in the blend films, hindered the photogenerated charge transfer and collection, and consequently resulted in low short-circuit current density and power conversion efficiency (PCE). The surface -OH groups also boosted the photocatalytic activity and led to fast degradation of the nonfullerene acceptor. Removal of the surface -OH groups can alleviate such problems. Different acid solutions, ZrAcac, 2-phenylethylmercaptan (PET), and glutamic acid (GC), were used to treat the ZnO films, and PET treatment was the most effective treatment for performance improvement. An efficiency of 16.46% was achieved for the PM6:Y6 cells and the long-term stability under continuous illumination conditions was significantly improved with a T80 lifetime of over 4000 h (4410 h), showing the excellent long-term stability of this heterojunction solar cell. Our understanding of the surface pH condition-related device performance and stability would guide the development of a feasible method for solving the interface problems in OSCs. We also provide a practical strategy to modify ZnO with acid solutions for high-performance and stable NFA OSCs.