Beckmann rearrangement, a classical reaction of introducing nitrogen to carbon skeleton compounds, is widely used in acadimia and industry. Herein, an electrochemical Beckmann rearrangement is reported, utilizing 2,3-dichloro-5,6-dicyano-1,4-benzoquinone (DDQ) as a mediator to prevent the over-electro-oxidation of products, which could afford amide in excellent yield.