In this paper we present a high temperature heating device, working under defined environmental conditions, for a Siemens D500 Bragg–Brentano powder diffractometer. The powder sample is prepared in a flat mould on a metal block consisting either of copper or of platinum depending on the temperature range selected for investigations. Although the heating cell can be used separately under ambient conditions up to sample temperatures of 1000 °C, it is possible to work under defined environmental conditions in the temperature range between 20 and 200 °C and up to a water vapour pressure of 1000 mbar. For that purpose a special cover for the in situ control of temperature and water vapour pressure has been constructed. It is important to note that the three sample conditions (sample temperature, gas temperature, and gas humidity) can be adjusted separately by the user. Current studies have shown that the described X-ray heating device is a powerful tool to study dehydration reactions in the frame of fundamental research as well as to understand industrially relevant processes concerning dehydration reactions and their mechanisms.