The dorsomedial prefrontal cortex (dmPFC) plays a crucial role in social cognitive functions, including perspective-taking. Although perspective-taking has been linked to self-control, the mechanism by which the dmPFC might facilitate self-control remains unclear. Using the multimodal neuroimaging dataset from the Human Connectome Project (Study 1, N =978 adults), we established a reliable association between the dmPFC and self-control, as measured by discounting rate—the tendency to prefer smaller, immediate rewards over larger, delayed ones. Experiments (Study 2, N = 36 adults) involving high-definition transcranial direct current stimulation showed that anodal stimulation of the dmPFC reduces the discounting of delayed rewards and decreases the congruency effect in egocentric but not allocentric perspective in the visual perspective-taking tasks. These findings suggest that the dmPFC promotes self-control by inhibiting the egocentric perspective, offering new insights into the neural underpinnings of self-control and perspective-taking, and opening new avenues for interventions targeting disorders characterized by impaired self-regulation.