The first walled city in Beijing was Jicheng, the capital city of the state of Ji and was built in 1045 BC. Within modern Beijing, Jicheng was located around the present Guang'anmen area in the south of Xicheng District. This settlement was later conquered by the state of Yan and made its capital.