Recent developments at synchrotron X-ray beamlines now allow collection of data suitable for structure determination and Rietveld structure refinement at high pressures and temperatures on challenging materials. These include materials, such as dolomite(CaMg(CO3)2) that tends to calcine at high temperatures, and Fe-containing materials, such as the spinel MgFe2O4, which tend to undergo changes in oxidation state. Careful consideration of encapsulation along with the use of radial collimation produced powder diffraction patterns virtually free of parasitic scattering from the cell in the case of large volume high-pressure experiments. These features have been used to study a number of phase transitions, especially those where superior signal-to-noise discrimination is required to distinguish weak ordering reflections. The structures adopted by dolomite, and CaSO4, anhydrite, were determined from 298 to 1466 K at high pressures. Using laser-heated diamond-anvil cells to achieve simultaneous high pressure and temperature conditions, we have observed CaSO4 undergo phase transitions to the monazite type and at highest pressure and temperature to crystallize in the barite-type structure. On cooling, the barite structure distorts, from an orthorhombic to a monoclinic lattice, to produce the AgMnO4-type structure.