Located in the eastern Paleo-Tethys Ocean and near the equator, carbonate sedimentation widely developed in the Sichuan Basin in the Permian Guadalupian period. Although the growth and decline of carbonate particles are closely related to the surrounding sedimentary environment, the relationships between the grain composition and distribution of the northwest Sichuan Basin and the sedimentary environment are not clear. This study explored the particle type, particle content, and sedimentary structure of 300 thin sections from 19 wells and seven field profiles of the Guadalupian period in the northwest Sichuan Basin, identified seven microfacies and four microfacies associations, analyzed the sedimentary environment, and established a sedimentary evolution model. The results show that there was a warm-water Dasycladaceae-dominated and foraminifera-dominated open platform developed in the early Roadian era in the research area. As the climate cooled during the late Roadian era, the warm-water carbonate sedimentary environment was replaced by a cold-water bryozoan-dominated and echinoid-dominated marginal sedimentary environment. As the climate continued to cool and the sea level dropped, the platform margin grain beach sediment underwent further development in the early Wordian era. In the late Wordian era stage, the sedimentary environment was influenced by the Dongwu movement, resulting in sea level changes and acidification caused by hydrothermal activities, which reduced the degree of grain beach development. During the Capitanian era, the climate became warmer due to the eruption of the ELIP. The uplift caused by the Dongwu movement resulted in a relative shallowing of the platform margin region, and hence, the grain beach sediment only developed in the southwest, while the northeast was dominated by deepwater basin sediments. The sudden transition from a warm-water, autotroph-dominated carbonate open platform to a cold-water, heterozoan-dominated carbonate platform margin resulted from a combination of tectonic movements, rapid sea level changes, and sedimentary environment changes during the Guadalupian era.