Indoles and azaindoles are among the most important heterocycles because of their prevalence in nature and their broad utility in pharmaceutical industry. Reported herein is an unprecedented noble-metal- and oxidant-free electrochemical method for the coupling of (hetero)arylamines with tethered alkynes to synthesize highly functionalized indoles, as well as the more challenging azaindoles.