The present invention relates to a nucleic acid for vaccine that has undergone codon optimization for expression in Bombyx mori, a vector comprising the nucleic acid, Bombyx mori comprising the vector, and a method for producing a vaccine in which they are used.