The capital of Shanxi province is Taiyuan.12
It is important to distinguish Shanxi from the neighboring province of Shaanxi, which has a different capital, Xi'an.3