The rational allocation of ecological space is one of the important bases for constructing ecological security. Taking Wuyishan City, a county-level city in Fujian Province, as the study area, we delimited the forbidden development zone, restricted development zone and general development zone based on ecosystem service importance assessment and ecological sensitivity assessment. The three types of zones covered 1079.71, 1267.22, and 375.35 km
2 respectively, accounting for 39.7%, 46.6%, and 13.8% of the total area of the city, respectively. Integrating the results of spatial zoning, combined with the existing natural protection area in Wuyishan City, the Minimum Cumulative Resistance model was used to construct the ecological security pattern. The area of ecological sources was identified as 1322.22 km
2, accounting for 47.3% of the total area of Wuyishan City. A total of 755 km ecological corridors and 55 ecological nodes were determined. Three ecological security level patterns were classified, which were 904.89, 511.09 and 1392.15 km
2 respectively, accounting for 32.2%, 49.6% and 18.2% of the study area, respectively. Our results provide a basis for the rational control of territorial space of Wuyishan City.