The invention relates to a porcine circovirus II-type (PCV2) epitope peptide vaccine and a preparation method of the vaccine. The vaccine contains three b cell epitopes, the lysine of the vaccine is four-branch peptide with the same core matrix structure epitope monomer and is connected with a general T ancillary cell (Th) epitope in series, and the vaccine has the molecular weight of 13kDa; the epitope peptide is named PCV CP98-156-228; after being vaccinated, a mice has stronger immune response, and a high potency virus neutralizing antibody can be generated. The epitope peptide vaccine has the advantages of being low in price, safe, high in specificity and easy to store and apply, and plays an important role in preventing and controlling the porcine circovirus disease. The PCV2 epitope peptide vaccine is prepared by four steps including predicting and screening epitope peptide, designing the epitope peptide vaccine, synthesizing, purifying and authenticating the epitope peptide as well as preparing the epitope peptide vaccine; the method is easy in raw material obtaining, lower in cost and easy to control, and has better operability, thus being suitable for being popularized and applied.