Diversified soil microbiomes are the key drivers of carbon fixation and plant residue decomposition in forest ecosystems. Revealing the elevation patterns of soil microbial carbon cycling in forests is essential for utilization of forest ecological resources. However, the soil microbial diversity and carbon cycle processes in Platycladus orientalis plantations across different elevations are still unclear. Here, we established a gradient with three elevations (118 m, 300 m, and 505 m) on the Beijing Ming Dynasty Tombs Forest Farm, which is located in Changping District, Beijing. The metagenomics method was applied to study the soil microbiome, with a special focus on the carbon cycle process at each elevation. We found the diversity and composition of the soil microbiomes significantly varied across the elevation gradients. The structure of bacteria and archaea was mainly driven by soil total potassium, pH and NH4+, but the eukaryota had no significant relationship with the environmental factors. The relative abundance of genes involved in microbial carbon fixation and decomposition of organic carbon were also significantly impacted by elevation, with the former showing increasing, u-shaped, or hump trends with increasing elevation, but the latter only showing hump trends. The rTCA cycle and 3-hydroxypropionate pathway were the dominant carbon fixation pathways in the Platycladus orientalis plantations. The elevation gradient shaped the microbial decomposition of plant-derived organic carbon by changing soil properties and, furthermore, led to soil organic carbon stock losses. These findings increase our understanding of soil microbial diversity and the carbon cycle across different elevations and provide a theoretical basis for the utilization of forest ecological resources to promote carbon sequestration.