As the adoption of distributed energy resources (DERs) grows, the future of electricity distribution systems is confronted with significant challenges. These challenges arise from the transformation of consumers into prosumers and the resulting increased system complexity, leading to more pressure on the distribution grids. To address this complexity, a Digital Twin framework is designed to simulate DERs within distribution grids effectively. This framework is structured around four key modules: DERs, the electricity distribution grid, the energy management system, and the consumers. It incorporates a communication interface to facilitate interactions among these modules and includes considerations for grid topologies and demand-side configurations. The framework allows for the exploration of various DER adoption rates and capacities. The validation of this framework involves case studies on two Danish distribution grids with scenarios incorporating rooftop photovoltaic (PV) systems, batteries, and electric vehicles, considering different combinations of these technologies. The findings demonstrate the framework’s ability to depict the states of the grid, PV systems, electric vehicles, and battery systems with a 10 min resolution over periods ranging from a day to over a decade.