Yan'an (IPAc-cmn; Chinese: 延安; pinyin: Yán'ān) is a prefecture-level city in the Shanbei region of Shaanxi province, China, bordering Shanxi to the east and Gansu to the west. It administers several counties, including Zhidan (formerly Bao'an), which served as the headquarters of the Chinese Communists before the city of Yan'an proper took that role.