A fleeting photoinduced electronic state and the subsequent formation of a photoinduced hidden state in a metal–organic framework were captured in just 30 femtoseconds by researchers at Science Tokyo, Tohoku University and Nagoya Institute of Technology, Japan. By combining ultrafast laser spectroscopy with theoretical analysis, the researchers found that a transient electronic state plays a key role in this process. The findings provide new insights into controlling material properties with light for future applications.