In 1932 Prince Khalid was named as viceroy of the Hejaz, replacing Prince Faisal in the post, who was named minister of foreign affairs. Prince Khalid's term as viceroy of Hejaz lasted until 1934. Prince Khalid joined the Saudi army led by his older brother Prince Faisal and fought against Yemeni forces in 1934. After the war, Prince Khalid served as the chairman of the Saudi delegation at the Taif Conference with Yemen in 1934. This was a diplomatic move that led to the Taif Treaty later that year which was signed by Prince Khalid on behalf of Saudi Arabia and Abdullah al Wazeer on behalf of Yemen.