The directed movement of ectoine into, out of or within a cell, or between cells, by means of some agent such as a transporter or pore. Ectoine (1,4,5,6-tetrahydro-2-methyl-4-pyrimidinecarboxylic acid) is a tetrahydropyrimidine commonly synthesized by halophilic bacteria.