Capital of China, Beijing is a worldclass cultural and educational centre. With a population of million (2017), it ranks as China's second largest city behind Shanghai. Beijing is renowned for its opulent palaces, temples, and huge stone walls and gates – treasures that make it the most popular tourist city in China by the number of visitors it receives every year.