The Yuejin 2 mining area lies within the Mangya region, situated on the northwestern periphery of the Qaidam Basin. Recently discovered, it harbors a medium-sized uranium deposit within the basin. Nonetheless, investigations into the sedimentary provenance and paleoclimate of the Neogene Qigequan Formation in this locale have been sparse. This study delves into a meticulous examination of petrogeochemical attributes and the detrital zircon UPb geochronology of sandstones from the Qigequan Formation within the mining area, aiming to discern their origins and tectonic context. By scrutinizing the trace and rare earth element signatures of the rocks, we discern that the lower strata of the Qigequan Formation primarily originate from felsic sedimentary sources, indicative of a continental island arc tectonic. Detrital zircon ages from the Qigequan Formation manifest primarily in three distinct periods: 169–292 Ma, 327–505 Ma, and > 670 Ma, corresponding with geological ages documented in the Altyn Tagh and East Kunlun Mountains orogenic belts. Predominantly, the Altyn Tagh orogenic belt and the Qimantag Mountains in the eastern Kunlun Mountains serve as the principal source of the Qigequan Formation. The chemical weathering index (CIA*) is 70.54, suggesting a moderate level of chemical weathering within the source region. Additionally, the angular morphology of the detrital zircon implies proximity between the source area and the basin. During the late sedimentary epoch of the Qigequan Formation, rapid uplift of the Altyn Tagh led to a notable rise in temperature within the Yuejin 2 area, transitioning from a reducing to an oxidizing environment. Surface water enriched with uranium and eroded source rocks gradually infiltrated the sand bodies of the lower Qigequan Formation. Interaction with reducing agents facilitated the enrichment and formation of ore. Paleoclimatic shifts instigated the oxidation–reduction sequence necessary for uranium mineralization. Favorable conditions, characterized by oxygen-rich paleo-water, facilitated the activation, migration, and re-enrichment of uranium. Moreover, the Himalayan movement acted as a driving force and a pivotal factor in creating the conducive conditions imperative for large-scale uranium mineralization in the area.