The invention discloses an ectoine synthetase gene, a recombinant vector, a recombinant engineering bacterium and an application of the engineering bacterium. The gene which can code ectoine synthetases is efficiently expressed in host cells to produce the ectoine synthetases, so the engineering bacterium containing the gene, which has the advantages of stable structure, excellent performances, high salt tolerance, no need of domestication during high salt wastewater processing, high salt wastewater processing cost reduction, and production technology simplification, can be widely applied to the high salt wastewater processing in the daily chemical industry, the food processing industry, the leather processing industry, the organic synthetic industry, the medicine preparation industry andthe like, and has great meanings.