Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer).
Organizing photochromic molecules into 3D networks is a key strategy to access photoresponsive materials, but framework rigidity typically limits conversion efficiency. Here, the authors exploit a flexible metal-organic framework to achieve quantitative and reversible photoisomerization in a porous crystalline solid.