The invention discloses preparation and application of recombinant plectasin. The method comprises designing plectasin gene according to preferred codons of Pichia pastoris, wherein possible nucleotide sequences of the plectasin gene are expressed in SEQ ID NO. 1, constructing recombinant expression vectors pPICPlectasin and recombinant genetic engineering bacteria Pichia pastoris X33pPICPlectasin (CGMCC NO. 3564), carrying out a high density fermentation process on the recombinant genetic engineering bacteria Pichia pastoris having a high expression level, wherein a total protein concentration of supernate from the high density fermentation process is 729 microgrammes per milliliter, dialyzing and freeze-drying the supernate, and orderly carrying out a gel filtration chromatography treatment and a reversed phase high performance liquid chromatogram treatment on the freeze-dried supernate to obtain high purity recombinant plectasin. The high purity recombinant plectasin is not hemolytic, has favorable PH stability, heat stability and anti-pepsin activity, and can inhibit effectively the growth of gram-positive pathogen Streptococcus pneumonia, staphylococcus aureus and staphylococcus epidermidis. Therefore, the high purity recombinant plectasin can be utilized for treating and preventing gram-positive bacterium and especially streptococcus and has potential antimicrobial drug development values.