Beijing has a history of nearly 3,050 years. It was the capital of the Jin, Yuan, Ming and Qing dynasties, attracting countless people from afar, and boasting both cultural and material riches. During the Ming and Qing dynasties, a clear, complete layout consisting of four layers of city walls took shape. Beijing was divided into four parts: the Forbidden City, the Imperial City,the Inner City and the Outer City. With different functions and structures, the four parts of the city each formed its own local culture, distinct from, but supplementing one another.