The invention relates to a perovskite solar cell and a preparation method thereof. The perovskite solar cell is composed of an FTO glass substrate, a sandwich structure TiO2/ZnO/TiO2 compact layer, a TiO2 mesoporous/perovskite structure material active light absorption layer, a spiro-OMeTAD hole transferring layer and a gold electrode. Compared with the prior art, the sandwich structure TiO2/ZnO/TiO2 compact layer combines with the advantages and disadvantages of TiO2 and ZnO, so that fill factors of the perovskite solar cell are improved to 70%, and the photoelectric conversion efficiency reaches 12.6%. Equipment for preparing the perovskite solar cell is simple, the preparing process is simple, control is easy, the cost is low, and the perovskite solar cell has a very good industrial application prospect.