Question: When was the city where the capital was moved to made the capital of China?

full_context: Document 1: Nanjing: It is believed that Nanjing was the largest city in the world from 1358 to 1425 with a population of 487,000 in 1400. Nanjing remained the capital of the Ming Empire until 1421, when the third emperor of the Ming dynasty, the Yongle Emperor, relocated the capital to Beijing.
Document 2: Former Qin: The Former Qin (351-394) was a state of the Sixteen Kingdoms in eastern Asia, mainly China. Founded by an officer in Shi Le's dynasty, it completed the unification of North China in 376. Its capital was Xi'an up to the death of the ruler Fu Jiān in 385. Despite its name, the Former Qin was much later and less powerful than the Qin Dynasty which had ruled all of China during the 3rd century BC. The adjective "former" is used to distinguish it from the "Later Qin" state (384-417).
Document 3: Nanjing: Nanjing first became a state capital in 229 AD, when the state of Eastern Wu founded by Sun Quan during the Three Kingdoms period relocated its capital to Jianye (建業), the city extended on the basis of Jinling Yi in 211 AD. Although conquered by the Western Jin dynasty in 280, Nanjing and its neighbouring areas had been well cultivated and developed into one of the commercial, cultural and political centers of China during the rule of East Wu. This city would soon play a vital role in the following centuries.
Document 4: Ming dynasty: Great Ming 大明 1368 -- 1644 Ming China under the reign of the Yongle Emperor Ming China around 1580 Capital Nanjing (Yingtian prefecture) (1368 -- 1644) Beijing (Shuntian prefecture) (1403 -- 1644) Languages Official language: Mandarin Other Chinese languages Other languages: Turki (Modern Uyghur), Old Uyghur language, Tibetan, Mongolian, Jurchen, others Religion Heaven worship, Taoism, Confucianism, Buddhism, Chinese folk religion, Islam, Roman Catholicism Government Absolute monarchy Emperor (皇帝) 1368 -- 1398 (first) Hongwu Emperor 1402 -- 1424 Yongle Emperor 1627 -- 1644 (last) Chongzhen Emperor Senior Grand Secretary 1402 -- 1407 Xie Jin 1644 Wei Zaode History Established in Nanjing 23 January 1368 Beijing designated as capital 28 October 1420 Fall of Beijing 25 April 1644 End of the Southern Ming 1683 Area 1415 6,500,000 km (2,500,000 sq mi) Population 1393 est. 65,000,000 1403 est. 66,598,337 1 1500 est. 125,000,000 2 1600 est. 160,000,000 3 Currency Paper money (1368 -- 1450) Bimetallic: copper cashes (文, wén) in strings of coin and paper Silver taels (兩, liǎng) in sycees and by weight Preceded by Succeeded by Yuan dynasty Shun dynasty Southern Ming dynasty Today part of (show) Burma China Laos Russia Vietnam North Korea Remnants of the Ming dynasty ruled southern China until 1662, and Taiwan until 1683 a dynastic period which is known as the Southern Ming. 1The numbers are based on estimates made by CJ Peers in Late Imperial Chinese Armies: 1520 -- 1840 2According to A.G. Frank, ReOrient: global economy in the Asian Age, 1998, p. 109 3According to A. Maddison, The World Economy Volume 1: A Millennial Perspective Volume 2, 2007, p. 238
Document 5: Yuan dynasty: Kublai readied the move of the Mongol capital from Karakorum in Mongolia to Khanbaliq in 1264, constructing a new city near the former Jurchen capital Zhongdu, now modern Beijing, in 1266. In 1271, Kublai formally claimed the Mandate of Heaven and declared that 1272 was the first year of the Great Yuan (Chinese: 大元) in the style of a traditional Chinese dynasty. The name of the dynasty originated from the I Ching and describes the "origin of the universe" or a "primal force". Kublai proclaimed Khanbaliq the "Great Capital" or Daidu (Dadu, Chinese: 大都 in Chinese) of the dynasty. The era name was changed to Zhiyuan to herald a new era of Chinese history. The adoption of a dynastic name legitimized Mongol rule by integrating the government into the narrative of traditional Chinese political succession. Khublai evoked his public image as a sage emperor by following the rituals of Confucian propriety and ancestor veneration, while simultaneously retaining his roots as a leader from the steppes.
Document 6: Nanjing: Since the Three Kingdoms period, Nanjing has been an industrial centre for textiles and minting owing to its strategic geographical location and convenient transportation. During the Ming dynasty, Nanjing's industry was further expanded, and the city became one of the most prosperous cities in China and the world. It led in textiles, minting, printing, shipbuilding and many other industries, and was the busiest business center in East Asia. Textiles boomed particularly in Qing dynasty, the industry created around 200 thousand jobs and there were about 50 thousand satin machines in the city in 18th and 19th century.
Document 7: Forbidden City: The Forbidden City is a palace complex in central Beijing, China. The former Chinese imperial palace from the Ming dynasty to the end of the Qing dynasty -- the years 1420 to 1912, it now houses the Palace Museum. The Forbidden City served as the home of emperors and their households as well as the ceremonial and political center of Chinese government for almost 500 years.
Document 8: Nanjing: During the period of North–South division, Nanjing remained the capital of the Southern dynasties for more than two and a half centuries. During this time, Nanjing was the international hub of East Asia. Based on historical documents, the city had 280,000 registered households. Assuming an average Nanjing household had about 5.1 people at that time, the city had more than 1.4 million residents.
Document 9: Nanjing: Being one of the four ancient capitals of China, Nanjing has always been a cultural centre attracting intellectuals from all over the country. In the Tang and Song dynasties, Nanjing was a place where poets gathered and composed poems reminiscent of its luxurious past; during the Ming and Qing dynasties, the city was the official imperial examination centre (Jiangnan Examination Hall) for the Jiangnan region, again acting as a hub where different thoughts and opinions converged and thrived.
Document 10: History of Beijing: The city of Beijing has a long and rich history that dates back over 3,000 years. Prior to the unification of China by the First Emperor in 221 BC, Beijing had been for centuries the capital of the ancient states of Ji and Yan. During the first millennia of imperial rule, Beijing was a provincial city in northern China. Its stature grew in the 10th to the 13th centuries when the nomadic Khitan and forest - dwelling Jurchen peoples from beyond the Great Wall expanded southward and made the city a capital of their dynasties, the Liao and Jin. When Kublai Khan made Dadu the capital of the Mongol - led Yuan dynasty (1279 -- 1368), all of China was ruled from Beijing for the first time. From 1279 onward, with the exception of two interludes from 1368 to 1420 and 1928 to 1949, Beijing would remain as China's capital, serving as the seat of power for the Ming dynasty (1421 -- 1644), the Manchu - led Qing dynasty (1644 -- 1912), the early Republic of China (1912 -- 1928) and now the People's Republic of China (1949 -- present).
Document 11: Nanjing: As the center of the empire, early-Ming Nanjing had worldwide connections. It was home of the admiral Zheng He, who went to sail the Pacific and Indian Oceans, and it was visited by foreign dignitaries, such as a king from Borneo (Boni 渤泥), who died during his visit to China in 1408. The Tomb of the King of Boni, with a spirit way and a tortoise stele, was discovered in Yuhuatai District (south of the walled city) in 1958, and has been restored.
Document 12: Qing dynasty: First, the Manchus had entered "China proper" because Dorgon responded decisively to Wu Sangui's appeal. Then, after capturing Beijing, instead of sacking the city as the rebels had done, Dorgon insisted, over the protests of other Manchu princes, on making it the dynastic capital and reappointing most Ming officials. Choosing Beijing as the capital had not been a straightforward decision, since no major Chinese dynasty had directly taken over its immediate predecessor's capital. Keeping the Ming capital and bureaucracy intact helped quickly stabilize the regime and sped up the conquest of the rest of the country. However, not all of Dorgon's policies were equally popular nor easily implemented.
Document 13: Nanjing: Nanjing ( listen; Chinese: 南京, "Southern Capital") is the city situated in the heartland of lower Yangtze River region in China, which has long been a major centre of culture, education, research, politics, economy, transport networks and tourism. It is the capital city of Jiangsu province of People's Republic of China and the second largest city in East China, with a total population of 8,216,100, and legally the capital of Republic of China which lost the mainland during the civil war. The city whose name means "Southern Capital" has a prominent place in Chinese history and culture, having served as the capitals of various Chinese dynasties, kingdoms and republican governments dating from the 3rd century AD to 1949. Prior to the advent of pinyin romanization, Nanjing's city name was spelled as Nanking or Nankin. Nanjing has a number of other names, and some historical names are now used as names of districts of the city, and among them there is the name Jiangning (江寧), whose former character Jiang (江, River) is the former part of the name Jiangsu and latter character Ning (寧, simplified form 宁, Peace) is the short name of Nanjing. When being the capital of a state, for instance, ROC, Jing (京) is adopted as the abbreviation of Nanjing. Although as a city located in southern part of China becoming Chinese national capital as early as in Jin dynasty, the name Nanjing was designated to the city in Ming dynasty, about a thousand years later. Nanjing is particularly known as Jinling (金陵, literally meaning Gold Mountain) and the old name has been used since the Warring States Period in Zhou Dynasty.
Document 14: History of the Forbidden City: The site of the Forbidden City was situated on the Imperial city during the Mongol Yuan Dynasty. After the collapse of the Yuan Dynasty, the Hongwu Emperor of the Ming Dynasty moved the capital from Beijing in the north to Nanjing in the south, and in 1369 ordered that the Yuan palaces be razed. His son Zhu Di was created Prince of Yan with his seat in Beijing. In 1402, Zhu Di usurped the throne and became the Yongle Emperor. He made Beijing a secondary capital of the Ming empire, and construction began in 1406 of what would become the Forbidden City. The Forbidden City's plan was designed by many architects and designers, and then it was examined by the Emperor's Ministry of Work. The chief architects and engineers include Cai Xin, Nguyen An, a Vietnamese eunuch, Kuai Xiang, Lu Xiang and others.
Document 15: Nanjing: Nanjing, one of the nation's most important cities for over a thousand years, is recognized as one of the Four Great Ancient Capitals of China, and had been the world's largest city aggregately for hundreds of years, enjoyed peace and prosperity and beared wars and disasters. Nanjing served as the capital of Eastern Wu, one of the three major states in the Three Kingdoms period (211-280); the Eastern Jin and each of the Southern Dynasties (Liu Song, Southern Qi, Liang and Chen), which successively ruled southern China from 317-589; the Southern Tang, one of the Ten Kingdoms (937-76); the Ming dynasty when, for the first time, all of China was ruled from the city (1368-1421); and the Republic of China (1927–37, 1945–49) prior to its flight to Taiwan during the Chinese Civil War. The city also served as the seat of the rebel Taiping Heavenly Kingdom (1851–64) and the Japanese puppet regime of Wang Jingwei (1940–45) during the Second Sino-Japanese War, and suffered appalling atrocities in both conflicts, including the Nanjing Massacre. It has been serving as the capital city of Jiangsu province after the China was established, and is still the nominal capital of Republic of China that accommodates many of its important heritage sites, including the Presidential Palace and Sun Yat-sen Mausoleum. Nanjing is famous for human historical landscapes, mountains and waters such as Fuzimiao, Ming Palace, Chaotian Palace, Porcelain Tower, Drum Tower, Stone City, City Wall, Qinhuai River, Xuanwu Lake and Purple Mountain. Key cultural facilities include Nanjing Library, Nanjing Museum and Art Museum.
ground_truth: 1279
sub_queries: Where was the capital moved to? Answer: Beijing
when was Beijing made the capital of china Answer: 1279