The construction of N -heterocyclic rings represents a very important and fast-developing area of organic synthesis. In this context, electrochemistry has emerged as a mild solution for generating in situ the required electrophilic substrates, bases and nucleophiles derived from low-level and extremely stable reagents, the further application of which makes some heterocycles more accessible. In this review, we have covered the recent advances in the electrochemical synthesis of five- and six-membered N -heterocyclic compounds published from 2017 to October 2018. 1 Introduction 2 Electrochemical Synthesis of Five-Membered N-Containing Heterocycles 2.1 Pyrrolidines 2.2 Imidazoles 2.3 Pyrazoles 2.4 Triazoles 2.5 Oxazoles 2.6 Indoles 2.7 Thiazoless 3 Electrochemical Synthesis of Six-Membered N-Containing Heterocycles 3.1 Piperidines and Pyridines 3.2 Quinazolinones 3.3 Benzoxazines 4 Conclusions. © 2019 Georg Thieme Verlag. All rights reserved.