Defect centers in wide-band-gap crystals have garnered interest for their potential in applications among optoelectronic and sensor technologies. However, defects embedded in highly insulating crystals, like diamond, silicon carbide, or aluminum oxide, have been notoriously difficult to excite electrically due to their large internal resistance. To address this challenge, we realized a new paradigm of exciting defects in vertical tunneling junctions based on carbon centers in hexagonal boron nitride (hBN). The rational design of the devices via van der Waals technology enabled us to raise and control optical processes related to defect-to-band and intradefect electroluminescence. The fundamental understanding of the tunneling events was based on the transfer of the electronic wave function amplitude between resonant defect states in hBN to the metallic state in graphene, which leads to dramatic changes in the characteristics of electrons due to different band structures of constituent materials. In our devices, the decay of electrons via tunneling pathways competed with radiative recombination, resulting in an unprecedented degree of tuneability of carrier dynamics due to the significant sensitivity of the characteristic tunneling times on the thickness and structure of the barrier. This enabled us to achieve a high-efficiency electrical excitation of intradefect transitions, exceeding by several orders of magnitude the efficiency of optical excitation in the sub-band-gap regime. This work represents a significant advancement towards a universal and scalable platform for electrically driven devices utilizing defect centers in wide-band-gap crystals with properties modulated via activation of different tunneling mechanisms at a level of device engineering.