Based on the oil and gas exploration in the Sichuan Basin, combined with data such as seismic, logging and geochemistry, the basic geological conditions, hydrocarbon types, hydrocarbon distribution characteristics, source- reservoir relationship and accumulation model of the Upper Triassic–Jurassic continental whole petroleum system in the basin are systematically analyzed. The continental whole petroleum system in the Sichuan Basin develops multiple sets of gas-bearing strata, forming a whole petroleum system centered on the Triassic Xujiahe Formation source rocks. The thick and high-quality source rocks in the Upper Triassic Xujiahe Formation provide sufficient gas source basis for the continental whole petroleum system in the basin. The development of conventional-unconventional reservoirs provides favorable space for hydrocarbon accumulation. The coupling of faults and sandbodies provides a high-quality transport system for gas migration. Source rocks and reservoirs are overlapped vertically, and there are obvious differences in sedimentary environment, reservoir lithology and physical properties, which lead to the orderly development of inner-source shale gas, near-source tight gas, and far-source tight–conventional gas in the Upper Triassic–Jurassic, from bottom to top. The orderly change of geological conditions such as burial depth, reservoir physical properties, formation pressure and hydrocarbon generation intensity in zones controlled the formation of the whole petroleum system consisting of structural gas reservoir in thrust zone, shale gas-tight gas reservoir in depression zone, tight gas reservoir in slope zone, and tight gas–conventional gas reservoir in uplift zone on the plane. Based on the theory and concept of the whole petroleum system, the continental shale gas and tight gas resources in the Sichuan Basin have great potential, especially in the central and western parts with abundant unconventional resources.