The invention discloses a La, Er, Co and Mn co-doped BFO film with a resistance switching effect and a preparation method of the film. The chemical formula of the film is Bi0.9-xLaxEr0.1Fe0.96Co0.02Mn0.02O3, x=0.01-0.09, the film is of a twisted rhombic perovskite structure, a space group is R3c, and the film grows along a (101) direction. The film is prepared by a sol-gel method through a layer-by-layer annealing process, a preparation method is simple, reaction is easy, technology process temperature is low, and a preparation process is easily controlled. According to the A-site rare earth ion and B-site magnetic transition metal ion co-doped BiFeO3 film, a middle transition layer is formed an interface of the film and an electrode film, kinds and quantity of an oxygen vacancy at a BiFeO3 film interface are changed along with mixing of La ions in the BiFeO3 film, and the film has the resistance switching effect.