Equipment for time and temperature dependent powder diffraction has been developed, especially in order to be able to study hydrothermal syntheses of zeolites. The system is very versatile and has so far been used to study e.g. hydrothermal syntheses of zeolites and aluminophosphates, syntheses of layered phosphates, formation of Sorel cements, dehydration and phase transformations of zeolites, sold state synthesis of lanthanum manganites, ion exchange of zeolites using molten salt, and oxidation/reduction of lanthanum manganites at high temperatures. The sample is contained in quartz capillaries and is heated using a stream of hot air. External pressure can be applied allowing hydrothermal syntheses at temperatures up to 200 degrees C to be performed. Controlled atmosphere is obtained by flowing gas or a mixture of gases through the capillary.