Instruct: Given a question, retrieve relevant documents that answer the question.
Query: How long did the Qin dynasty last?
The Qin dynasty () was the first dynasty of Imperial China, lasting from 221 to 206 BC. Named for its heartland in Qin state (modern Gansu and Shaanxi), the dynasty was founded by Qin Shi Huang, the First Emperor of Qin. The strength of the Qin state was greatly increased by the Legalist reforms of Shang Yang in the fourth century BC, during the Warring States period. In the mid and late third century BC, the Qin state carried out a series of swift conquests, first ending the powerless Zhou dynasty, and eventually conquering the other six of the Seven Warring States. Its 15 years was the shortest major dynasty in Chinese history, consisting of only two emperors, but inaugurated an imperial system that lasted, with interruption and adaptation, until 1912 CE.
King Zhaoxiang reigned as the King of Qin for 57 years, and was responsible for the state of Qin achieving strategic dominance over the other six major states. During his reign, Qin captured the Chu capital Ying in 278 BC, conquered the Xirong state of Yiqu in 272 BC, slaughtered a 450,000-strong Zhao army at Changping in 260 BC, and overthrew the Eastern Zhou dynasty in 256 BC. These aggressive territorial expansions and the strategic weakening of other rival states paved the path for Qin's eventual unification of China three decades later by his great-grandson Ying Zheng.
The Warring States period in China drew to a close, with Qin Shi Huang conquering the six other nation-states and establishing the short-lived Qin dynasty, the first empire of China, which was followed in the same century by the long-lasting Han dynasty. However, a brief interregnum and civil war existed between the Qin and Han periods known as the Chu-Han contention, lasting until 202 BC with the ultimate victory of Liu Bang over Xiang Yu.
Note: King Zhaoxiang of Qin (秦昭襄王) had already been ruling Qin for 51 years when Qin annihilated the Zhou dynasty; however the other six warring states were still independent regimes. Some Chinese historiographers thus used the next year (the 52nd year of King Zhaoxiang of Qin) as the official succession from the Zhou dynasty.
In ancient China, the rulers of the Shang ("c". 1600 – "c". 1050 BC) and Zhou ("c". 1050 – 256 BC) dynasties were referred to as kings (王 "wang"). By the time of the Zhou dynasty, they were also referred to as Sons of Heaven (天子 "Tianzi"). By 221 BC, the King of Qin, Ying Zheng, conquered and united all the Warring States of ancient China. To elevate himself above the Shang and Zhou kings of old, he accepted the new title of emperor (皇帝 "huangdi") and is known to posterity as the First Emperor of Qin ("Qin Shi Huang"). The new title of emperor was created by combining the titles for the Three Sovereigns ("Sanhuang") and Five Emperors ("Wudi") from Chinese mythology. This title was used by each successive ruler of China until the fall of the Qing dynasty in 1911.
In China, the Jin dynasty, which had united the nation prior in 280, began to quickly face troubles by the start of the century due to political infighting, which led to the opportunistic insurrections of the northern barbarian tribes (starting the Sixteen Kingdoms period), which quickly overwhelmed the empire, forcing the Jin court to retreat and entrench itself in the south past the Yangtze river, starting what is known as the Eastern Jin dynasty around 317. 
Towards the end of the century, Emperor of the Former Qin, Fu Jiān, united the north under his banner, and planned to conquer the Jin dynasty in the south, so as to finally reunite the land, but was decisively defeated at the Battle of Fei River in 383, causing massive unrest and civil war in his empire, thereby leading to the fall of the Former Qin, and the continued existence of the Eastern Jin dynasty.
Qin founded the Qin dynasty in 221 BC, the first unified state in the region. Qin was succeeded by the Han dynasty in 206 BC, which established the province ("zhou") of Jingzhou in what is now Hubei and Hunan. The Qin and Han played an active role in the agricultural colonization of Hubei, maintaining a system of river dikes to protect farmland from summer floods. Towards the end of the Han dynasty in the beginning of the 3rd century, Jingzhou was ruled by regional warlord Liu Biao. After his death, Liu Biao's realm was surrendered by his successors to Cao Cao, a powerful warlord who had conquered nearly all of north China; but in the Battle of Red Cliffs, warlords Liu Bei and Sun Quan drove Cao Cao out of Jingzhou. Liu Bei then took control of Jingzhou; he went on to conquer Yizhou (the Sichuan Basin), but lost Jingzhou to Sun Quan; for the next few decades Jingzhou was controlled by the Wu Kingdom, ruled by Sun Quan and his successors.
The incursion of northern nomadic peoples into the region at the beginning of the 4th century began nearly three centuries of division into a nomad-ruled (but increasingly Sinicized) north and a Han Chinese-ruled south. Hubei, to the South, remained under southern rule for this entire period, until the unification of China by the Sui dynasty in 589. In 617 the Tang dynasty replaced Sui, and later on the Tang dynasty placed what is now Hubei under several circuits: Jiangnanxi Circuit in the south; Shannandong Circuit in the west, and Huainan Circuit in the east. After the Tang dynasty disintegrated in the 10th century, Hubei came under the control of several regional regimes: Jingnan in the center, Wu (later Southern Tang) to the east, and the Five Dynasties to the north.
Reigning over 55 years, he was one of the longest-serving rulers during the Eastern Zhou Dynasty. Although making numerous policy mistakes during his later years, his aggressive territorial expansions were pivotal in consolidating the state of Qin as the dominant military powerhouse in the late Warring States period. It was the strategic dominance established during his reign that paved the way to Qin's eventual successful unification of China under his great-grandson, Ying Zheng.
The reign of the first imperial dynasty was to be short-lived. Due to the First Emperor's autocratic rule and his massive labor projects, which fomented rebellion among the populace, the Qin dynasty fell into chaos soon after his death. Under the corrupt rule of his son and successor Huhai, the Qin dynasty collapsed a mere three years later. The Han dynasty (206 BC–220 CE) then emerged from the ensuing civil wars and succeeded in establishing a much longer-lasting dynasty. It continued many of the institutions created by the Qin dynasty, but adopted a more moderate rule. Under the Han dynasty, arts and culture flourished, while the Han Empire expanded militarily in all directions. Many Chinese scholars such as Ho Ping-ti believe that the concept (ethnogenesis) of Han ethnicity, though an ancient one, was formally entrenched in the Han dynasty. The Han dynasty is considered one of the golden ages of Chinese history, and to this day, the modern Han Chinese people have since taken their ethnic name from this dynasty and the Chinese script is referred to as "Han characters".
The fall of the Han dynasty was followed by an age of fragmentation and several centuries of disunity amid warfare among rival kingdoms. During this time, areas of northern China were overrun by various non-Han nomadic peoples, which came to establish kingdoms of their own, the most successful of which was Northern Wei (established by the Xianbei). Starting from this period, the native population of China proper began to be referred to as Hanren, or the "People of Han", to distinguish them from the nomads from the steppe. Warfare and invasion led to one of the first great migrations of Han populations in history, as they fled south to the Yangtze and beyond, shifting the Chinese demographic center and speeding up sinicization of the far south. At the same time most of the nomads in northern China came to be sinicized as they ruled over large Chinese populations and adopted elements of their culture and administration. Of note, the Xianbei rulers of Northern Wei ordered a policy of systematic sinicization, adopting Han surnames, institutions, and culture.
One might incorrectly infer from viewing historical timelines that transitions between dynasties occur abruptly and smoothly. Rather, dynasties were often established before the complete overthrow of an existing reign, or continued for a time after they had been effectively defeated. For example, the conventional date 1645 marks the year in which the Qing dynasty armies overthrew the preceding Ming dynasty, according to the dynastic cycle of China. However, the Qing dynasty was established in 1636 (or even 1616, albeit under a different name), while the last Ming dynasty pretender was not deposed until 1663. This change of ruling houses was a messy and prolonged affair, and the Qing took almost twenty years to extend their control over the whole of China. It is therefore inaccurate to assume China changed suddenly and all at once in the year 1645.
In China, the period known as the Sixteen Kingdoms, where various barbarian tribes formed their own kingdoms, persisted. After the fall of the Former Qin towards the end of the previous century, the north of China was eventually once again reunited by Northern Wei in 439. Meanwhile, in the Eastern Jin dynasty, the Jin statesman and general Liu Yu started consolidating his power and eventually forced the last Emperor of the Jin dynasty, Emperor Gong of Jin, to abdicate to him in 420, creating the (Liu) Song dynasty, which was also the starting point of the period known as the Northern and Southern dynasties.
In 221 BC, Qin conquered the other six Warring States and founded the Qin dynasty; the He Shi Bi was then taken from the last duke of Zhao by Qin Shi Huangdi, who ordered it made into his imperial seal. The words, "Having received the Mandate from Heaven, may (the emperor) lead a long and prosperous life." (受命於天，既壽永昌) were written by Chancellor Li Si, and carved onto the seal by a man named Sun Shou. When Colonel Liu Bang attacked Xianyang, Ziying handed the jade over as a way of surrendering. The seal was to be passed on even as the dynasties rose and fell, but was lost between the Tang and Ming dynasties.
Like their Ming (1368–1644) predecessors—but unlike the emperors of earlier dynasties like the Han (206 BCE–220 CE), Tang (618–907), and Song (960–1276)—Qing emperors used only one era name ("Shunzhi", "Qianlong", "Guangxu", etc.) for their entire reign, and are most commonly known by that name. Starting with Nurhaci, there were thirteen Qing rulers. Following the capture of Beijing in 1644, the Shunzhi Emperor (r. 1643–1661) became the first of the eleven Qing sovereigns to rule over China proper. At 61 years, the reign of the Kangxi Emperor (r. 1661–1722) was the longest, though his grandson, the Qianlong Emperor (r. 1735–1796), would have reigned even longer if he had not purposely ceded the throne to the Jiaqing Emperor (r. 1796–1820) in order not to reign longer than his grandfather. Qing emperors succeeded each other from father to son until the Tongzhi Emperor (r. 1861–1875), the 11th Qing ruler, died childess in 1875. The last two emperors were chosen by Empress Dowager Cixi from other branches of the imperial clan.
Emperor Xian, the last emperor of the Han dynasty, was a descendant of the first emperor Liu Bang. Lasting for over 400 years (the first to last for more than a century), the Han Dynasty is regarded as one of the golden ages of Chinese history. The Han Dynasty was interrupted by the reign of the usurper Wang Mang, who declared the Xin dynasty (9–23 AD); on this basis, the Han Dynasty is generally divided into the Western Han (206 BC – 9 AD and 23–25 AD) and the Eastern Han (25–220 AD). The rulers of the Shu Han, one of the three successor states to the Han Dynasty during the Three Kingdoms period, were descended from the Han imperial family, and considered themselves a continuation of the Han Dynasty; they are included below.
Duke Zhuang succeeded his father Duke Cheng of Qi, who died in 795 BC, as ruler of Qi. He had a long reign during an era of upheaval in China. In 771 BC, the Quanrong tribes from the west attacked Haojing, capital of the Zhou Dynasty, and killed King You of Zhou. Duke Xiang of the state of Qin sent his army to escort King You's son King Ping of Zhou to the new capital Luoyi, marking the beginning of the Eastern Zhou Dynasty. As a reward for Qin's protection King Ping formally granted Duke Xiang of Qin a nobility rank and elevated Qin to the status of a vassal state on par with other major states such as Qi and Jin. Although Qi was little affected by the turmoil as it was located east of the Zhou territory, the state of Qin would from then on grow stronger and eventually conquer Qi in 221 BC and unite China under the Qin Dynasty.
The Qianlong Emperor (25 September 1711 – 7 February 1799) was the sixth emperor of the Manchu-led Qing dynasty, and the fourth Qing emperor to rule over China proper. Born Hongli, the fourth son of the Yongzheng Emperor, he reigned officially from 11 October 1735 to 8 February 1796. On 8 February, he abdicated in favour of his son, the Jiaqing Emperor—a filial act in order not to reign longer than his grandfather, the illustrious Kangxi Emperor. Despite his retirement, however, he retained ultimate power as the Emperor Emeritus (or Retired Emperor) until his death in 1799; he thus was one of the longest-reigning "de facto" rulers in the history of the world, and dying at the age of 87, one of the longest-lived. As a capable and cultured ruler inheriting a thriving empire, during his long reign the Qing Empire reached its most splendid and prosperous era, boasting a large population and economy. As a military leader, he led military campaigns expanding the dynastic territory to the largest extent by conquering and sometimes destroying Central Asian kingdoms. This turned around in his late years: the Qing empire began to decline with corruption and wastefulness in his court and a stagnating civil society.
This is a family tree for the Zhou dynasty, descendants of Duke Wu of Zhou who overthrew the last Shang ruler, thereby establishing the dynasty. Ruling from 1046 BC to 256 BC, it is notable as the longest dynasty in Chinese history, although the actual political and military control of China by the dynasty only lasted during the Western Zhou.
The Xiongnu were a confederation of nomadic tribes from Central Asia with a ruling class of unknown origin and other subjugated tribes. They lived on the Mongolian Plateau between the 3rd century BC and the 460s AD, their territories including modern day Mongolia, southern Siberia, western Manchuria, and the modern Chinese provinces of Inner Mongolia, Gansu, and Xinjiang. The Xiongnu was the first unified empire of nomadic peoples. Relations between early Chinese dynasties and the Xiongnu were complicated and included military conflict, exchanges of tribute and trade, and marriage treaties. When Emperor Qin Shihuang drove them away from the south of the Yellow River, he built the famous Great Wall to prevent the Xiongnu from coming back.
The Han dynasty was founded by the peasant rebel leader (Liu Bang), known posthumously as Emperor Gao ("r". 202 –195 BC) or Gaodi. The longest reigning emperor of the dynasty was Emperor Wu ("r". 141–87 BC), or Wudi, who reigned for 54 years. The dynasty was briefly interrupted by the Xin dynasty of the former regent Wang Mang, but he was overthrown in 23 AD and the Han dynasty was reestablished by Liu Xiu, known posthumously as Emperor Guangwu (r. 25–57 AD), or Guangwu Di. The last Han emperor, Emperor Xian ("r". 189–220 AD), was a puppet monarch of Chancellor Cao Cao (155–220 AD), who dominated the court and was made King of Wei. In 220 AD, Cao's son Pi usurped the throne as Emperor Wen of Wei ("r". 220–226 AD) and ended the Han dynasty.
The end of the Han dynasty refers to the period of Chinese history from 189 to 220 AD, which roughly coincides with the tumultuous reign of the Han dynasty's last ruler, Emperor Xian. During this period, the country was thrown into turmoil by the Yellow Turban Rebellion (184–205). Meanwhile, the Han Empire's institutions were destroyed by the warlord Dong Zhuo, and fractured into regional regimes ruled by various warlords, some of whom were nobles and officials of the Han imperial court. Eventually, one of those warlords, Cao Cao, was able to gradually reunify the empire, ostensibly under Emperor Xian's rule, but the empire was actually controlled by Cao Cao himself. Cao Cao's efforts to completely reunite the Han empire were rebuffed at the Battle of Red Cliffs in 208 / 209, when his armies were defeated by the allied forces of Sun Quan and Liu Bei. The Han dynasty formally ended in 220 when Cao Cao's son and heir, Cao Pi, pressured Emperor Xian into abdicating in his favour. Cao Pi became the emperor of a new state, Cao Wei. A year later, in response to Cao Pi's usurpation of the Han throne, Liu Bei declared himself emperor of Shu Han; and in 229, Sun Quan followed suit, declaring himself emperor of Eastern Wu. The period from Emperor Xian's abdication in 220 to the partial reunification of China under the Jin dynasty in 265 was known as the Three Kingdoms era in Chinese history.
In 221 BC, Ying Zheng, who was king of Qin at the time, proclaimed himself "Shi Huangdi" (始皇帝), which translates as "first emperor". "Huangdi" is composed of "huang" ("august one", 皇) and "di" ("sage-king", 帝), and referred to legendary/mythological sage-emperors living several millennia earlier, of which three were "huang" and five were "di". Thus Zheng became Qin Shi Huang, abolishing the system where the "huang"/"di" titles were reserved to dead and/or mythological rulers. Since then, the title "king" became a lower ranked title, and later divided into two grades. Although not as popular, the title 王 "wang" (king or prince) was still used by many monarchs and dynasties in China up to the Taipings in the 19th century. 王 is pronounced "vương" in Vietnamese, "ō" in Japanese, and "wang" in Korean.
However, while the empire at times was extended to the north, the Qin could rarely hold on to the land for long. The tribes of these locations, collectively called the Hu by the Qin, were free from Chinese rule during the majority of the dynasty. Prohibited from trading with Qin dynasty peasants, the Xiongnu tribe living in the Ordos region in northwest China often raided them instead, prompting the Qin to retaliate. After a military campaign led by General Meng Tian, the region was conquered in 215 BC and agriculture was established; the peasants, however, were discontented and later revolted. The succeeding Han dynasty also expanded into the Ordos due to overpopulation, but depleted their resources in the process. Indeed, this was true of the dynasty's borders in multiple directions; modern Xinjiang, Tibet, Manchuria, Inner Mongolia, and regions to the southeast were foreign to the Qin, and even areas over which they had military control were culturally distinct.
The Qin Dynasty was preceded by the feudal Zhou Dynasty and followed by the Han Dynasty in China. The unification of China in 221 BC under the First Emperor Qin Shi Huang marked the beginning of Imperial China, a period which lasted until the fall of the Qing Dynasty in 1912.
In 214 BC Qin Shihuang secured his boundaries to the north with a fraction (100,000 men) of his large army, and sent the majority (500,000 men) south to seize still more land. Prior to the events leading to Qin dominance over China, they had gained possession of much of Sichuan to the southwest. The Qin army was unfamiliar with the jungle terrain, and it was defeated by the southern tribes' guerrilla warfare tactics with over 100,000 men lost. However, in the defeat Qin was successful in building a canal to the south, which they used heavily for supplying and reinforcing their troops during their second attack to the south. Building on these gains, the Qin armies conquered the coastal lands surrounding Guangzhou, and took the provinces of Fuzhou and Guilin. They struck as far south as Hanoi. After these victories in the south, Qin Shihuang moved over 100,000 prisoners and exiles to colonize the newly conquered area. In terms of extending the boundaries of his empire, the First Emperor was extremely successful in the south.
Historians often refer to the period from the Qin dynasty to the end of the Qing dynasty as Imperial China. Though the unified reign of the First Qin Emperor lasted only 12 years, he managed to subdue great parts of what constitutes the core of the Han Chinese homeland and to unite them under a tightly centralized Legalist government seated at Xianyang (close to modern Xi'an). The doctrine of Legalism that guided the Qin emphasized strict adherence to a legal code and the absolute power of the emperor. This philosophy, while effective for expanding the empire in a military fashion, proved unworkable for governing it in peacetime. The Qin Emperor presided over the brutal silencing of political opposition, including the event known as the burning of books and burying of scholars. This would be the impetus behind the later Han synthesis incorporating the more moderate schools of political governance.
Despite its military strength, the Qin Dynasty did not last long. When the first emperor died in 210 BC, his son was placed on the throne by two of the previous emperor's advisers, in an attempt to influence and control the administration of the entire country through him. The advisors squabbled among themselves, however, which resulted in both their deaths and that of the second Qin emperor. Popular revolt broke out a few years later, and the weakened empire soon fell to a Chu lieutenant, who went on to found the Han Dynasty. Despite its rapid end, the Qin Dynasty influenced future Chinese regimes, particularly the Han, and the European name for China is derived from it.