To optimize the transformation conditions and improve the transformation efficiency of Bacillus subtilis WB800 and DB104. Trehalose, which could decrease the damage of electric shock to the cells, was added to the electroporation medium containing sorbitol and mannitol. The factors affecting the transformation efficiency, such as the growth phase of bacteria, cell concentration, electric field strength and plasmid variety, were examined and improved. The new method increased the transformation efficiency of B. subtilis by nearly 100-fold compared with the conventional one. With the optimized method, the transformation efficiency came up to 3.64 × 10(5) transformants μg(-1) DNA for WB800, and 2.10 × 10(5) transformants μg(-1) DNA for DB104. This improvement in transformation efficiency will be largely attributed to the research of expression of exogenous genes in B. subtilis, gene library construction for directed evolution and transformation of wild-type B. subtilis strains.