Aiming at the problems of insufficient power supply capacity, unbalanced load, and poor safety and reliability of the urban power grid, a flexible DC optimization control strategy is proposed to support the interconnection of power grid zones. Firstly, the steady-state and transient optimal control objectives are established to meet the safety and economic operation requirements of the grid; secondly, comprehensive evaluation indexes are constructed, covering load balancing, network loss, and voltage deviation, and a step-by-step approximation method is used to quickly solve the optimal power of the flexible DC, so as to realize the optimal control of the urban grid in the steady state. Meanwhile, a multi-terminal flexible DC adaptive sag control strategy based on the power margin of the converter station is designed to reasonably allocate the emergency power support in each partition after a fault and reduce the frequency deviation of the heavily loaded nodes. Taking the urban grid as an example, a simulation model of the grid structure with a 750 KV outer ring and a 220 KV inner ring is constructed, and the simulation results verify the effectiveness of the proposed method and its engineering practicability.