The aim of this study was to explore the carbon storage potential of karst forest soils in the Lijiang River Basin, reveal the spatial pattern of soil organic carbon (SOC), investigate the contributions and pathways of each driving factor to the spatial distribution of soil organic carbon, and provide a scientific basis for assessing the carbon cycle function of karst forests in the region. We employed structural equation modeling (SEM) and correlation analysis to investigate the spatial distribution characteristics of forest soil organic carbon in different basin sections (upper, middle, and lower reaches) and soil layers at different depths of the Lijiang River. Additionally, the direct and indirect ratios of each factor were quantified. The results showed that the overall soil layer of karst forest soils in the Lijiang River Basin was shallow, and soil organic carbon was phenoconcentric. The distribution of soil organic carbon content in different watershed sections was upstream > downstream > midstream, and the distribution of readily oxidizable carbon (ROC) and dissolved organic carbon (DOC) was consistent, whereas the distribution of microbial biomass carbon (MBC) was upstream > midstream > downstream. The contribution of various biotic and abiotic factors to the spatial distribution of soil organic carbon in karst forests in the watershed was different, and their contributions were ranked in descending order as:soil physicochemical factors > soil organic carbon active fraction > sample elevation > sample species diversity, with the total effects of 1.148, 0.574, 0.284, and -0.013, respectively. Among them, the sample site elevation had only an indirect effect on soil organic carbon, and the soil organic carbon active fraction had only a direct effect on soil organic carbon. Among the driving factors, total soil nitrogen, soil oxidizable organic carbon, sample site species richness, and soil soluble organic carbon could be used as important predictors of soil organic carbon content in karst forests in the Lijiang River Basin. Therefore, it is necessary to establish an effective eco-environmental protection mechanism covering the whole Lijiang River Basin, to reduce and control the impact of anthropogenic disturbances (especially in the middle urban section of the Lijiang River Basin), and to enhance and protect the species diversity of karst forests in the basin in order to improve soil physicochemical properties, improve and enhance the content of the soil organic carbon active fraction, and enhance the soil organic carbon stocks of karst forests in the Lijiang River Basin through other effective ways, as well as to promote the enhancement of the regional forest carbon sink function.