Photochemistry in a 3D metal-organic framework (MOF): monitoring intermediates and reactivity of the fac-to-mer photoisomerization of Re(diimine)(CO)3Cl incorporated in a MOF.