It is well known that heterocyclic compounds play a key role in improving drug activity, target selectivity, physicochemical properties as well as reducing toxicity. In this review, we summarized the representative heterocyclic structures involved in hit compounds which were obtained from DNA-encoded library from 2013 to 2021. In some examples, the state of the art in heterocycle-based DEL synthesis and hit-to-lead optimization are highlighted. We hope that more and more novel heterocycle-based DEL toolboxes and in-depth pharmaceutical research on these lead compounds can be developed to accelerate the discovery of new drugs.