The invention provides a preparation method of dendritic cells, which belongs to the technical field of tumor treatment. The preparation method comprises the steps of: 1) ligating a fusion gene of human leukocyte antigen (HLA) and KRAS mutation to pCDH or a mammalian expression vector to obtain a recombinant plasmid; 2) transforming the dendritic cells (DC) derived from peripheral blood by electroporation with the recombinant plasmid to obtain the recombinant cells (i-DC); and 3) inducing maturation of the recombinant cells to obtain the mature dendritic cells. In the prior art, antigen-presenting cells are generally loaded by mutating polypeptides, or mutant antigens are transferred into antigen-presenting cells, but the efficiency of both is low, The method converts the fusion gene of KRAS antigen and HLA into the antigen-presenting cells and overexpresses two genes, increases the binding rate of HLA and KRAS mutant antigen, improves the efficiency of presentation, and more easily obtains CTL with specific killing effect.