Defects in perovskite films are one of the main factors that affect the efficiency and stability of halide perovskite solar cells (PSCs). Uncoordinated ions (such as Pb2+, I−) act as trap states, causing the undesirable non-radiative recombination of photogenerated carriers. The formation of Lewis acid–base adducts in perovskite directly involves the crystallization process, which can effectively passivate defects. In this work, 4-(trifluoromethyl)-1H-imidazole (THI) was introduced into the perovskite precursor solution as a passivation agent. THI is a typical amphoteric compound that exhibits a strong Lewis base property due to its lone pair electrons. It coordinates with Lewis acid Pb2+, leading to the reduction in defect density and increase in crystallinity of perovskite films. Finally, the power conversion efficiency (PCE) of PSC increased from 16.49% to 18.97% due to the simultaneous enhancement of open-circuit voltage (VOC), short circuit current density (JSC) and fill factor (FF). After 30 days of storage, the PCE of the 0.16 THI PSC was maintained at 61.9% of its initial value, which was 44.3% for the control device. The working mechanism of THI was investigated. This work provides an attractive alternative method to passivate the defects in perovskite.