The invention discloses a Halomonas strain and an application thereof. The strain is a new species in Halomonas, and the preservation number of the strain is CGMCC (China General Microbiological Culture Collection Center) NO.24977. The invention further discloses a preparation method of the Halomonas strain. The strain C2-1-M8 obtained by separation in the invention is a new species different from a known species of Halomonas, and can be used for synthesizing ectoine (Ectoine) in cells. The strain C2-1-M8 can utilize substrates such as D-fructose, glycerol, D-fructose-6-phosphoric acid, L-alanine, L-histamine, L-serine, D-galacturonic acid, D-glucuronic acid, glucosamide, L-lactic acid, D-malic acid, L-malic acid, Tween 40 and the like, and has a broad-spectrum property of the substrates. According to physiological and biochemical experiments, the growth temperature of the strain C2-1-M8 ranges from 4 DEG C to 30 DEG C, the NaCl concentration needed by growth ranges from 1.0% to 17.0%, and the growth pH value ranges from 5.0 to 7.5. Meanwhile, the yield of tetrahydropyrimidine synthesized by the strain C2-1-M8 under the conditions that the temperature is 30 DEG C, the NaCl concentration is 5.0%-9.0% and the pH is 5.5-7.0 is optimal. The strain has a very wide application prospect in biological preparation of ectoine.