Metal–organic frameworks (MOFs) are often overlooked in electrocatalysis due to perceived instability under operational conditions. Here, the authors highlight that the controlled structural evolution of MOFs under electrocatalytic conditions can be harnessed to create highly active catalytic species.