ABSTRACT Connectivity enhancement of ecological networks is an efficient and advantageous spatial planning strategy, and it is a hot research topic to analyze ecological networks based on complex systems theory and perform model optimization. As a typical geographic network, the evolution process of ecological network, such as node and edge growth, will be subject to geospatial constraints, and the current research lacks optimization models that take the geospatial constraints into account. This study focused on urban ecological network connectivity and the distribution of nodes as well as structural fractures where the connectivity of the ecological network was hindered were analyzed. Then it introduced a local world network model to optimize network connectivity and designed a network growth mechanism with limited added nodes and optimal connections. An ecological network optimization model considering geospatial constraints was constructed, and the network closeness index was used to fit the objective function curve to select optimization schemes. This study used Shenzhen, China as a case study, and the results indicated that the initial ecological network was significantly fractured by urban construction. In the optimization scenario, the network evolution reached its optimal state at the simulation step size of t = 26. At this point, the closeness index of the optimized network was increased by 15%. The optimization model constructed in this paper emphasizes the importance of functional restoration of existing network nodes, and the results of the study can provide support for ecospatial layout optimization and management.