The word "京城" is formed by combining the character "京", which means "capital" or "metropolis", with the character "城", which means "city" or "walled city", resulting in the compound term for "capital city".