Acinetobacter baumannii is an opportunistic human pathogen that has become a global threat to healthcare institutions worldwide. A major factor contributing to success of this bacterium is its outstanding ability to survive on dry surfaces. The molecular basis for desiccation resistance is not completely understood. This study focused on growth under osmotic stress and aimed to identify the pool of compatible solutes synthesized in response to these low water activity conditions. A. baumannii produced mannitol as compatible solute, but in contrast to Acinetobacter baylyi, also trehalose was accumulated in response to increasing NaCl concentrations. The genome of A. baumannii encodes a trehalose-6-phosphate phosphatase (OtsB) and a trehalose-6-phosphate synthase (OtsA). Deletion of otsB abolished trehalose formation, demonstrating that otsB is essential for trehalose biosynthesis. Growth of the mutant was neither impaired at low salt nor at 500 mM NaCl, but it did not grow at high temperatures, indicating a dual function of trehalose in osmo- and thermoprotection. This led us to analyse temperature dependence of trehalose formation. Indeed, expression of otsB was not only induced by high osmolarity but also by high temperature. Concurrently, trehalose was accumulated in cells grown at high temperature. Taken together, these data point to an important role of trehalose in A. baumannii beyond osmoprotection.