A catalyst-free, directelectrochemical synthesis of synthetically challenging medium-sized lactams through C–C bond cleavage has been developed. In contrast to previous typical amidyl radical cyclization, this electrosynthetic approach enabled step-economical ring expansion through a unique remote amidyl migration under mild, metal- and external-oxidant-free conditions in a simple undivided cell.