The present invention provides a method of preparing a porcine circovirus type 2 capsid protein and a pharmaceutical composition comprising the same. The preparation method uses an arabinose-induced expression vector to express the porcine circovirus type 2 capsid protein.