The ectABC genes encoding the biosynthesis of ectoine were identified from Nesterenkonia halobia DSM 20541. The intergenic regions of the ectABC genes from N. halobia DSM 20541 were more loosely spaced than those that had been reported before. The amino acid sequence deduced from ectABC of the strain was highly homologous to the EctABC of Brevibacterium linens BL2 (EctA 50%, EctB 70%, and EctC 68% identities). The osmoprotection of ectABC was studied in the Escherichia coli KNabc and E. coli XL1-Blue. The results revealed that ectABC could shorten the lag phase and enhance the final OD600 of E. coli XL1-Blue in MM63 medium containing 0.68 M NaCl, and could initiate KNabc growth in 0.2 M NaCl. Ectoine was proven to be accumulated in E. coli KNabc/pGEM-Nect using HPLC-UV, and validated by LC-MSD-Trap-VL.