A ground‐motion prediction equation for the vertical ground motions from the western and the southwestern parts of China (referred to as SWC) is presented in this study. Based on the Xing and Zhao (2021) study, the Zhao et al. (2017) model (referred to as ZHAO2017) for the shallow crustal earthquakes in Japan was used as the reference model. We used a bilinear magnitude‐scaling function hinged at a moment magnitude () of 7.1. The magnitude‐scaling rate for events with was determined by records from the SWC dataset and the large events in the Pacific Earthquake Engineering Research Center Next Generation Attenuation‐West2 dataset. Site classes (SCs) were used as the site response proxy. All other parameters were derived from the SWC dataset only. The magnitude‐scaling rates for events with in this study are larger than in the ZHAO2017 model at most periods. The absolute values of the geometric attenuation rates are larger, and the absolute values of the anelastic attenuation rates are smaller than in the ZHAO2017 model. The between‐event standard deviations are smaller than in the ZHAO2017 model at short periods, and the within‐event standard deviations are larger than in the ZHAO2017 model at all periods. The differences in the between‐site standard deviations vary significantly from one SC to another. We also find that the between‐event and within‐event residuals are almost independent of magnitude and source distance. The response spectrum attenuates less rapidly than in the ZHAO2017 model at distances less than 30 km.