The optimal conditions of producing town-pga by Bacillussubtilis in solid and liquid state were studied, and the extraction process of town-pga in fermentation broth was optimized, which greatly improved the production capacity of town-pga by Bacillussubtilis