The ecological protection and high-quality development of the Yellow River basin have become a major national strategy, necessitating the scientific construction and optimization of the ecological security pattern. Taking the Henan section of the Yellow River basin as the study area, this research integrates the "value-demand-risk" evaluation results to select ecological source areas and utilizes circuit theory to identify important ecological corridors and key ecological nodes, thus constructing an ecological security pattern. The optimization of the ecological security pattern is based on resource allocation, aiming to ensure more benefits for residents from the ecosystem. The results indicate the following: (1) The overall distribution of ecological system service value and ecological sensitivity in the Henan section of the Yellow River basin shows a west-high-east-low pattern, while the spatial distribution of ecological demand and ecological disturbance displays an east-high-west-low pattern. ( 2) The comprehensive ecological resistance values in the study area range from 4.75 to 545.05. High-value areas are mainly concentrated in the central-eastern regions with high human activities and fragile ecological environments, while low-value areas are mainly found in the western regions with relatively high vegetation coverage and favorable natural environmental conditions. (3) Before optimization, there