The invention provides a perovskite solar cell and a preparation method thereof. The perovskite solar cell comprises the steps of spin coating a ZnO precursor on the surface of a transparent conductive electrode to form an electron transport layer; Forming an absorbing layer on the electron transport layer, forming the absorbent layer comprises: PbI2 is dissolved in a mixed solution of dimethylformamide (DMF) and dimethyl sulfoxide (DMSO), then adding guanidine isothiocyanate, stirring and dissolving, then spin coating the mixed solution of PbI2 and guanidine isothiocyanate onto the electrontransport layer for first baking, then immersing in isopropyl alcohol (IPA) solution of CH3NH3I for second baking; forming a hole transport layer on the absorbing layer; A metal electrode is for on that hole transport layer. The perovskite solar cell provided by the invention optimizes the stability of the solar cell and improves the hysteresis effect of the solar cell.