formed in situ during the OER catalysis and remaining CoP synergistically contributed to the enhanced OER performance. The present strategy provides a new electrosynthetic method to prepare stable BP electrocatalysts and also further expands their electrochemical applications.