Question: In which century was Afghanistan invaded by the country who supported two puppet regimes in and around Iran during WWII?

full_context: Document 1: Pahlavi dynasty: The Pahlavi dynasty () was the last ruling house of the Imperial State of Iran from 1925 until 1979, when the Persian monarchy was overthrown and abolished as a result of the Iranian Revolution. The dynasty was founded by Reza Shah Pahlavi in 1925, a former brigadier-general of the Persian Cossack Brigade, whose reign lasted until 1941 when he was forced to abdicate by the Allies after the Anglo-Soviet invasion of Iran. He was succeeded by his son, Mohammad Reza Pahlavi, the last Shah of Iran.
Document 2: History of Central Asia: The dominance of the nomads ended in the 16th century as firearms allowed settled people to gain control of the region. The Russian Empire, the Qing dynasty of China, and other powers expanded into the area and seized the bulk of Central Asia by the end of the 19th century. After the Russian Revolution of 1917, the Soviet Union incorporated most of Central Asia; only Mongolia and Afghanistan remained nominally independent, although Mongolia existed as a Soviet satellite state and Soviet troops invaded Afghanistan in the late 20th century. The Soviet areas of Central Asia saw much industrialisation and construction of infrastructure, but also the suppression of local cultures and a lasting legacy of ethnic tensions and environmental problems.
Document 3: Armenia: Between the 16th century and 19th century, the traditional Armenian homeland composed of Eastern Armenia and Western Armenia came under the rule of the Ottoman and successive Iranian empires, repeatedly ruled by either of the two over the centuries. By the 19th century, Eastern Armenia had been conquered by the Russian Empire, while most of the western parts of the traditional Armenian homeland remained under Ottoman rule. During World War I, Armenians living in their ancestral lands in the Ottoman Empire were systematically exterminated in the Armenian Genocide. In 1918, after the Russian Revolution, all non-Russian countries declared their independence from the Russian empire, leading to the establishment of the First Republic of Armenia. By 1920, the state was incorporated into the Transcaucasian Socialist Federative Soviet Republic, and in 1922 became a founding member of the Soviet Union. In 1936, the Transcaucasian state was dissolved, transforming its constituent states, including the Armenian Soviet Socialist Republic, into full Union republics. The modern Republic of Armenia became independent in 1991 during the dissolution of the Soviet Union.
Document 4: Name of Iran: In the Western world, Persia (or one of its cognates) was historically the common name for Iran. On the Nowruz of 1935, Reza Shah Pahlavi asked foreign delegates to use the term Iran, the endonym of the country, in formal correspondence. Since then, in the Western World, the use of the word ``Iran ''has become more common. This also changed the usage of the terms for Iranian nationality, and the common adjective for citizens of Iran changed from`` Persian'' to ``Iranian ''. In 1959, the government of Mohammad Reza Shah Pahlavi, Reza Shah Pahlavi's son, announced that both`` Persia'' and ``Iran ''could officially be used interchangeably. However the issue is still debated today.
Document 5: Mohammad Reza Pahlavi: Mohammad Reza Pahlavi (Persian: محمدرضا پهلوی ‎, translit. Mohammad Reza Pahlavi, pronounced (mohæmˈmæd reˈzɒː ˈʃɒːh pæhlæˈviː); 26 October 1919 -- 27 July 1980), also known as Mohammad Reza Shah (محمدرضاشاه Mohamad Rezā Ŝāh), was the last Shah of Iran from 16 September 1941 until his overthrow by the Iranian Revolution on 11 February 1979. Mohammad Reza Shah took the title Shahanshah (``King of Kings '') on 26 October 1967. He was the second and last monarch of the House of Pahlavi. Mohammad Reza Shah Pahlavi held several other titles, including that of Aryamehr (`` Light of the Aryans'') and Bozorg Arteshtaran (``Commander - in - Chief ''). His dream of what he referred to as a`` Great Civilisation'' (Persian: تمدن بزرگ ‎, translit. tamadon - e bozorg) in Iran led to a rapid industrial and military modernisation, as well as economic and social reforms.
Document 6: Modern history: On the Indian subcontinent, the Mughal Empire ruled most of India in the early 18th century. The "classic period" ended with the death and defeat of Emperor Aurangzeb in 1707 by the rising Hindu Maratha Empire, although the dynasty continued for another 150 years. During this period, the Empire was marked by a highly centralized administration connecting the different regions. All the significant monuments of the Mughals, their most visible legacy, date to this period which was characterised by the expansion of Persian cultural influence in the Indian subcontinent, with brilliant literary, artistic, and architectural results. The Maratha Empire was located in the south west of present-day India and expanded greatly under the rule of the Peshwas, the prime ministers of the Maratha empire. In 1761, the Maratha army lost the Third Battle of Panipat which halted imperial expansion and the empire was then divided into a confederacy of Maratha states.
Document 7: British Empire: During the 19th century, Britain and the Russian Empire vied to fill the power vacuums that had been left by the declining Ottoman Empire, Qajar dynasty and Qing Dynasty. This rivalry in Eurasia came to be known as the "Great Game". As far as Britain was concerned, defeats inflicted by Russia on Persia and Turkey demonstrated its imperial ambitions and capabilities and stoked fears in Britain of an overland invasion of India. In 1839, Britain moved to pre-empt this by invading Afghanistan, but the First Anglo-Afghan War was a disaster for Britain.
Document 8: History of Central Asia: With the collapse of the Soviet Union in 1991, five Central Asian countries gained independence -- Kazakhstan, Uzbekistan, Turkmenistan, Kyrgyzstan, and Tajikistan. In all of the new states, former Communist Party officials retained power as local strongmen.
Document 9: Iran: In 1941, Reza Shah was forced to abdicate in favor of his son, Mohammad Reza Pahlavi, and established the Persian Corridor, a massive supply route that would last until the end of the ongoing war. The presence of so many foreign troops in the nation also culminated in the Soviet-backed establishment of two puppet regimes in the nation; the Azerbaijan People's Government, and the Republic of Mahabad. As the Soviet Union refused to relinquish the occupied Iranian territory, the Iran crisis of 1946 was followed, which particularly resulted in the dissolution of both puppet states, and the withdrawal of the Soviets.
Document 10: 1953 Iranian coup d'état: The 1953 Iranian coup d'état, known in Iran as the 28 Mordad coup d'état (), was the overthrow of the democratically elected Prime Minister Mohammad Mosaddegh in favour of strengthening the monarchical rule of Mohammad Reza Pahlavi on 19 August 1953, orchestrated by the United States (under the name "TPAJAX" Project or "Operation Ajax") and the United Kingdom (under the name "Operation Boot"). It was the first covert action of the United States to overthrow a foreign government during peacetime.
Document 11: Qing dynasty: By the mid-18th century, the Qing had successfully put outer regions such as Inner and Outer Mongolia, Tibet and Xinjiang under its control. Imperial commissioners and garrisons were sent to Mongolia and Tibet to oversee their affairs. These territories were also under supervision of a central government institution called Lifan Yuan. Qinghai was also put under direct control of the Qing court. Xinjiang, also known as Chinese Turkestan, was subdivided into the regions north and south of the Tian Shan mountains, also known today as Dzungaria and Tarim Basin respectively, but the post of Ili General was established in 1762 to exercise unified military and administrative jurisdiction over both regions. Dzungaria was fully opened to Han migration by the Qianlong Emperor from the beginning. Han migrants were at first forbidden from permanently settling in the Tarim Basin but were the ban was lifted after the invasion by Jahangir Khoja in the 1820s. Likewise, Manchuria was also governed by military generals until its division into provinces, though some areas of Xinjiang and Northeast China were lost to the Russian Empire in the mid-19th century. Manchuria was originally separated from China proper by the Inner Willow Palisade, a ditch and embankment planted with willows intended to restrict the movement of the Han Chinese, as the area was off-limits to civilian Han Chinese until the government started colonizing the area, especially since the 1860s.
Document 12: Iran: The struggle related to the constitutional movement continued until 1911, when Mohammad Ali Shah was defeated and forced to abdicate. On the pretext of restoring order, the Russians occupied Northern Iran in 1911, and maintained a military presence in the region for years to come. During World War I, the British occupied much of Western Iran, and fully withdrew in 1921. The Persian Campaign commenced furthermore during World War I in Northwestern Iran after an Ottoman invasion, as part of the Middle Eastern Theatre of World War I. As a result of Ottoman hostilities across the border, a large amount of the Assyrians of Iran were massacred by the Ottoman armies, notably in and around Urmia. Apart from the rule of Aqa Mohammad Khan, the Qajar rule is characterized as a century of misrule.
Document 13: Modern history: In Asia, various Chinese dynasties and Japanese shogunates controlled the Asian sphere. In Japan, the Edo period from 1600 to 1868 is also referred to as the early modern period. And in Korea, from the rising of Joseon Dynasty to the enthronement of King Gojong is referred to as the early modern period. In the Americas, Native Americans had built a large and varied civilization, including the Aztec Empire and alliance, the Inca civilization, the Mayan Empire and cities, and the Chibcha Confederation. In the west, the European kingdoms and movements were in a movement of reformation and expansion. Russia reached the Pacific coast in 1647 and consolidated its control over the Russian Far East in the 19th century.
Document 14: Azerbaijan People's Government: The Firqah-i Dimukrat, or Azerbaijani Democratic Party (ADP), publicly announced its formation in Tabriz on September 3, 1945 by a group of veteran communists headed by Ja'far Pishevari. After the announcement, the communist, Soviet-supported Tudeh party dissolved its Azerbaijan chapter and ordered its members to join ADP. ADP expanded throughout Iranian Azerbaijan, and initiated a local coup d'état with help from Soviet army, who prevented the Iranian army from intervening. During the first week of September 1945, the Azerbaijani Democratic Party, led by Ja'far Pishevari, a long-time leader of the revolutionary movement in Gilan, declared itself to be in control of Iranian Azerbaijan, promised liberal democratic reforms, and disbanded the local branch of Tudeh. Later in September 1945, at its first congress, the Azerbaijani Democratic Party authorized the formation of a peasant's militia. This militia started a bloodless coup on November 18, 1945 and by November 21, 1945 they had captured all remaining government posts in the province, and Iranian Azerbaijan "became an autonomous republic under the direction of a 39-member national executive committee".  The reality of the power seems to have been exercised by Mohammed Biriya, the Minister of Propaganda and head of the local secret police.At the same time, the US was steadily increasing its military assistance to the Iranian government. Under pressure by the Western powers, the Soviet Union revoked its support of the newly created state and the Iranian military succeeded in re-establishing Iranian rule in November 1946. According to Tadeusz Swietochowski:
Document 15: Islam in Central Asia: Islam in Central Asia has existed since the beginning of Islamic history. Islam is the most widely practiced religion in Central Asia. The Hanafi school of thought of Sunnism is the most popular, with Shiism of Imami and Ismaili denominations predominating in the Pamir plateau and the western Tian Shan mountains (almost exclusively Ismailis), while boasting to a large minority population in the Zarafshan river valley, from Samarkand to Bukhara (almost exclusively Imamis). Islam came to Central Asia in the early part of the 8th century as part of the Muslim conquest of the region. Many well-known Islamic scientists and philosophers came from Central Asia, and several major Muslim empires, including the Timurid Empire and the Mughal Empire, originated in Central Asia. In the 20th century, severe restrictions on religious practice were enacted by the Soviet Union in Soviet Central Asia and the People's Republic of China in Xinjiang. Concerns about Islamic radicalism and religious freedom in the region persist to this day.
ground_truth: 20th century
sub_queries: Who backed two puppet regimes in/around Iran during WWII? Answer: the Soviet Union
In which century did the Soviet Union invade Afghanistan? Answer: 20th century