A DNA sequence encoding Der p1 protein having a particular base sequence is codon-optimized for the Pichia pastoris expression system, which is conducive to expressing Der p1 in Pichia pastoris. After gene optimization and adding an activating element to increase the expression of Der p1 in molecular level, it was found that Der p1 is expressed at a higher level as compared with the prior art and has biological activity similar to the natural protein.