Based on the quantitative statistics and according to the homogeneous temperature of inclusions and buried history of the reservoir, this paper makes an approach to the pore evolution and the natural gas accumulation in the tight sandstone reservoir of Member 2 of Xujiahe Formation of Upper Triassic in the Yuanba area of Sichuan Basin. The dynamic recovery of the compacted history of the reservoir is achieved. It can be known that the gas filling time in the Yuanba area is in the middle diagenetic stage A when the reservoir was tightened. So the gas concentration is controlled by hydrocarbon-generating intensity and high quality reservoirs. Therefore, the depressed area in the eastern of Yuanba can be regarded as a favorable area for gas exploration.