The Pacific Walker circulation (PWC) is one of the major atmospheric circulations that plays an essential role in ocean-atmosphere interactions and global climate. The response of the PWC to greenhouse warming remains a mystery and model results are inconsistent. Based on multimodel simulations from the Coupled Model Intercomparison Project phase 6 (CMIP6), this study explores the intermodel uncertainty of the change in the PWC under global warming. The combination of the El Niño-like warming pattern and the interbasin warming contrast between the Indian and the Pacific Oceans strengthens (weakens) the west (east) branch of the Pacific trade winds, resulting in a structural shifting of the PWC. By conducting a set of Atmosphere General Circulation Model (AGCM) experiments, we demonstrate that the western Pacific warming plays a critical role in driving the PWC shift. An intensified western Pacific warming counteracts the effect of Indian Ocean warming on the PWC, leading to a uniformly weakened PWC in the tropical Pacific due to the SST gradient. In contrast, a decreased warming in the western Pacific strengthens the west branch of the PWC, shifting the turning longitude of zonal wind changes eastward. Further analysis reveals that the intermodel uncertainty of change in the PWC depends on the model biases. Our finding highlights that the relative warming pattern in the Indian and Pacific Oceans determines the PWC change in a warmer climate.