-methacryloyl hydrazones under mild conditions. The protocol demonstrates broad substrate scope. Various control experiments explored the merits and the plausible mechanism of the electrochemical phosphorylation systems. This work provides a sustainable and versatile approach to phosphorus-containing heterocycles, holding promise for applications in medicinal chemistry.