The present invention discloses a method for attaining potato plates which are disease resistant by utilizing agrobacterium-mediated hrap gene. After the combined inoculation of the method and the bacteria allergic protein harpinPss, the allergic reaction caused by harpinPss can be promoted in the intercellular space of all inoculated plates, and the polymeride of harpinPss is dissociated, so the disease resisting effect is better, and the disease resistance of the potato plates can be promoted. The hrap gene is introduced in the potato plates through the agrobacterium-mediated, thus resulting that the potato plates have the ability to resist the late blight and the bacterial wilt. The present invention has the technical proposal that the pre-cultured explants are inoculated in the agrobacterium germ liquid to be soaked, explants after being soaked select the tube seedling which can root after two times of root selections by co-culturing, callus of induce, bud inducting and rootage cultivating and selecting, and the potted transformed plants are transferred after the mass propagation, the transformed plants select positive plants by the methods of the PCR detection and the Southern hybridization detection, and then the potato plates which are disease resistant can be obtained by the in-vivo inoculation resistance identification. The present invention improves the callus of inducing and the bud inducing of the explants, and enhances the agrobacterium-mediated ability. That the roots of the explants are selected by two times can eliminate the false positive plates in the transformation process , avoid the continuing cultivation to the false positive plates, save the labour force and decrease the manufacturing cost.