Primary production is the cornerstone of energy flow and material cycling in dune ecosystems, as well as the fundamental driving force for ecological succession from bare sand to stable oases. However, the mechanisms underlying this critical process are complex, and significant knowledge gaps persist. We systematically elaborate on the core habitat characteristics and community structure of primary producers in dune ecosystems. Building on this foundation, we deeply analyze four key environmental factors governing the primary production process of dune ecosystems. Finally, from a macroscale perspective, we systematically discuss the multiscale ecological functions and far-reaching significance of primary production in dune ecosystems in local carbon sequestration, regional ecological restoration, and global carbon cycle processes. While photoautotrophic processes are traditionally regarded as the core of primary production in ecosystems, this review highlights the significance of chemolithoautotrophic primary production. Primary production not only initiates local soil formation and nutrient accumulation in dune ecosystems but also plays a critical role in regional desertification control and global carbon cycle. Future research is urgently needed to elucidate the contribution of chemolithoautotrophic primary production, disentangle the response mechanisms to multi-factorial interactions, and accurately assess the net effect of dune ecosystems on global carbon budget. These insights provide essential theoretical guidance for desertification control and ecological restoration.