The need to cope with the climate change challenge has given a strong impulse to promote energy produced by Renewable Energy Sources (RES), phasing out large plants based on fossil fuels in the transmission networks. Some of the most notable developments foreseen in power systems target Distribution Networks (DNs). In the future, DNs are expected to host a large percentage of distributed generators, including RES, to supply a growing share of the total demand. These units, in combination with other Distributed Energy Resources (DERs) such as electric vehicles, Battery Energy Storage Systems (BESSs) and Controllable Loads (CLs), are gradually elevating the role of Distribution System Operators (DSOs), allowing them to provide ancillary services and support the bulk transmission system. However, this new paradigm introduces significant challenges to the DNs which were not designed to host generation, and are currently operating close to their physical limits. They face increased uncertainties due to intermittent RES generation and new consumption patterns which make the consumer response hard to predict. Finally, bi-directional flows may trigger power quality issues, e.g. overvoltages, and the need to revise the protection schemes. The main scope of this dissertation is to develop methods to exploit the operational DER flexibility in every time frame of distribution systems in the most cost-effective way. Emphasis is put on optimal centralized approaches assuming perfect communication and monitoring infrastructure, and on robust and scalable purely local control strategies. Furthermore, the thesis investigates ancillary service provision to higher voltage levels and reliability aspects based on protection and automation configurations. As active measures this dissertation considers Distributed Generator (DG) reactive power control and active power curtailment, BESSs, CLs and on-load-tap-changing transformers. More specifically, the first part of the dissertation proposes various formulations of a tractable Optimal Power Flow (OPF) model based on the iterative Backward/Forward Sweep (BFS) power flow. The BFS-OPF is tractable due to the iterative scheme nature and the efficient power flow calculation, guarantees AC feasible solutions, and is used as the core tool in the operation-aware grid planning stage, the operational planning stage under uncertainty, and the real-time operation of active DNs. The second part proposes and verifies experimentally data-driven methods to emulate the optimal response without the need for communication considering stability analysis of the closed-loop control strategies. Segmented and multiple linear regression, support vector machines for the regression and classification problems, as well as hierarchical and partition clustering approaches are used to derive the data-driven schemes and tackle scalability aspects. Finally, the third part develops OPF-based schemes to offer frequency control regulation considering islanding constraints and voltage support according to European market frameworks, as well as identify optimal protection and automation configurations by a brute-force and a genetic algorithm method. This dissertation shows how advanced planning, operation, and control schemes in modern DNs can be used to tackle the challenges posed by the low-carbon future transformation efforts. Active measures can defer costly investments, solve power quality issues, and unlock new business cases for DSOs. Reactive power control is recognized to have the largest flexibility potential in DNs, since it can minimize losses, mitigate voltage issues, tackle unbalances in multi-phase systems and provide voltage support to higher voltage level, comprising the cheapest active measure., ISBN:978-3-906916-75-0