The mechanism of photo switchable proteins involves the presence of a chromophore, a light-absorbing molecule that undergoes a structural change upon illumination. This change triggers the protein to switch between its functional states. The precise control over protein function offered by light exposure allows for the modulation of cellular activities with spatial and temporal accuracy, a feature particularly beneficial in complex biological systems.