The Mesozoic-Cenozoic formations in the southwestern Junggar Basin are a key target for oil and gas exploration. However, complex provenance conditions hinder comprehensive understanding of sedimentary reservoirs. Based on petrology and elemental geochemistry analysis of field outcrops in the Tostai area. Research was conducted on the tectonic background, sediment transport distances, compositions of parent rocks and evolutionary Characteristics of Provenance Conditions in the provenance areas. It is generally believed that there have been three notable shifts in basin-mountain relationships during this period. Initially, from the Triassic to Jurassic, the Northern Tianshan magmatic rock area predominated as the primary provenance, with decreasing basin-mountain proximity and predominantly magmatic rock sediment composition indicating near provenance. Subsequently, heightened Cretaceous tectonic activity in the Tianshan Mountains led to significant uplift of metamorphic rock regions in the Middle Tianshan Mountains, gradually becoming the provenance for the study area. This increased distance between provenance and sedimentary areas, marked by a substantial presence of metamorphic rocks in sediments indicating far provenance. Lastly, the Cenozoic Himalayan movement resulted in vigorous uplift of the magmatic rock area in the northern Tianshan Mountains, reestablishing it as the primary provenance. This minimized basin-mountain distance, leading to deposition of near-provenance transported alluvial fans, braided rivers, and predominantly magmatic rock sediments.