In this paper, we report the design of a stainless-steel cell with polyimide film windows for carrying out in situ Mossbauer spectroscopy studies with a horizontal x-ray beam. It allows recording spectra at pressures up to 0.2-0.3 MPa and temperatures up to 500 °C under a gas flow rate of up to 100 ml min-1. The catalyst is either directly deposited on the heating element or pressed into the form of a pellet for larger quantities. A wide range of heating or cooling rates can be used, and a very accurate sample temperature can be monitored for several days. An example of application to the study of a catalyst based on iron nanoparticles entrapped in silicalite-1 used for the Fischer-Tropsch reaction is presented to illustrate the use of the cell.