Question: When did the 5th Dalai Lama gain political control over the region where Ladakh found his guidance in religion?

full_context: Document 1: Tibet: The 5th Dalai Lama is known for unifying the Tibetan heartland under the control of the Gelug school of Tibetan Buddhism, after defeating the rival Kagyu and Jonang sects and the secular ruler, the Tsangpa prince, in a prolonged civil war. His efforts were successful in part because of aid from Güshi Khan, the Oirat leader of the Khoshut Khanate. With Güshi Khan as a largely uninvolved overlord, the 5th Dalai Lama and his intimates established a civil administration which is referred to by historians as the Lhasa state. This Tibetan regime or government is also referred to as the Ganden Phodrang.
Document 2: Sino-Tibetan relations during the Ming dynasty: While the Ming dynasty traded horses with Tibet, it upheld a policy of outlawing border markets in the north, which Laird sees as an effort to punish the Mongols for their raids and to "drive them from the frontiers of China." However, after Altan Khan (1507–1582)—leader of the Tümed Mongols who overthrew the Oirat Mongol confederation's hegemony over the steppes—made peace with the Ming dynasty in 1571, he persuaded the Ming to reopen their border markets in 1573. This provided the Chinese with a new supply of horses that the Mongols had in excess; it was also a relief to the Ming, since they were unable to stop the Mongols from periodic raiding. Laird says that despite the fact that later Mongols believed Altan forced the Ming to view him as an equal, Chinese historians argue that he was simply a loyal Chinese citizen. By 1578, Altan Khan formed a formidable Mongol-Tibetan alliance with the Gelug that the Ming viewed from afar without intervention.
Document 3: Sino-Tibetan relations during the Ming dynasty: The Ming initiated sporadic armed intervention in Tibet during the 14th century, but did not garrison permanent troops there. At times the Tibetans also used armed resistance against Ming forays. The Wanli Emperor (r. 1572–1620) made attempts to reestablish Sino-Tibetan relations after the Mongol-Tibetan alliance initiated in 1578, which affected the foreign policy of the subsequent Qing dynasty (1644–1912) of China in their support for the Dalai Lama of the Gelug school. By the late 16th century, the Mongols were successful armed protectors of the Gelug Dalai Lama, after increasing their presence in the Amdo region. This culminated in Güshi Khan's (1582–1655) conquest of Tibet from 1637–1642 and the establishment of the Ganden Phodrang regime by the 5th Dalai Lama with his help.
Document 4: Sino-Tibetan relations during the Ming dynasty: Laird writes that Altan Khan abolished the native Mongol practices of shamanism and blood sacrifice, while the Mongol princes and subjects were coerced by Altan to convert to Gelug Buddhism—or face execution if they persisted in their shamanistic ways. Committed to their religious leader, Mongol princes began requesting the Dalai Lama to bestow titles on them, which demonstrated "the unique fusion of religious and political power" wielded by the Dalai Lama, as Laird writes. Kolmaš states that the spiritual and secular Mongol-Tibetan alliance of the 13th century was renewed by this alliance constructed by Altan Khan and Sönam Gyatso. Van Praag writes that this restored the original Mongol patronage of a Tibetan lama and "to this day, Mongolians are among the most devout followers of the Gelugpa and the Dalai Lama." Angela F. Howard writes that this unique relationship not only provided the Dalai Lama and Panchen Lama with religious and political authority in Tibet, but that Altan Khan gained "enormous power among the entire Mongol population."
Document 5: 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.
Document 6: History of India: Several Islamic kingdoms (sultanates) under both foreign and, newly converted, Rajput rulers were established across the north western subcontinent (Afghanistan and Pakistan) over a period of a few centuries. From the 10th century, Sindh was ruled by the Rajput Soomra dynasty, and later, in the mid-13th century by the Rajput Samma dynasty. Additionally, Muslim trading communities flourished throughout coastal south India, particularly on the western coast where Muslim traders arrived in small numbers, mainly from the Arabian peninsula. This marked the introduction of a third Abrahamic Middle Eastern religion, following Judaism and Christianity, often in puritanical form. Mahmud of Ghazni in the early 11th century raided mainly the north-western parts of the Indian sub-continent 17 times, but he did not seek to establish "permanent dominion" in those areas.
Document 7: Sino-Tibetan relations during the Ming dynasty: Rawski writes that Altan Khan's conversion to the Gelug "can be interpreted as an attempt to expand his authority in his conflict with his nominal superior, Tümen Khan." To further cement the Mongol-Tibetan alliance, the great-grandson of Altan Khan—the 4th Dalai Lama (1589–1616)—was made the fourth Dalai Lama. In 1642, the 5th Dalai Lama (1617–1682) became the first to wield effective political control over Tibet.
Document 8: Ladakh: Faced with the Muslim conquests in the Indian subcontinent in the 13th century, Ladakh chose to seek and accept guidance in religious matters from Tibet. For nearly two centuries till about 1600, Ladakh was subject to raids and invasions from neighbouring Muslim states. Some of the Ladakhis converted to Islam during this period.
Document 9: Sino-Tibetan relations during the Ming dynasty: Kolmaš writes that, as the Mongol presence in Tibet increased, culminating in the conquest of Tibet by a Mongol leader in 1642, the Ming emperors "viewed with apparent unconcern these developments in Tibet." He adds that the Ming court's lack of concern for Tibet was one of the reasons why the Mongols pounced on the chance to reclaim their old vassal of Tibet and "fill once more the political vacuum in that country." On the mass Mongol conversion to Tibetan Buddhism under Altan Khan, Laird writes that "the Chinese watched these developments with interest, though few Chinese ever became devout Tibetan Buddhists."
Document 10: Ladakh: In 1834, the Sikh Zorawar Singh, a general of Maharaja Ranjit Singh invaded and annexed Ladakh to the Sikh Empire. After the defeat of the Sikhs in the Second Anglo-Sikh War, the province of Jammu and Kashmir was transferred to Gulab Singh, to be ruled under British suzerainty as a princely state. A Ladakhi rebellion in 1842 was crushed and Ladakh was incorporated into the Dogra state of Jammu and Kashmir. The Namgyal family was given the jagir of Stok, which it nominally retains to this day. European influence began in Ladakh in the 1850s and increased. Geologists, sportsmen, and tourists began exploring Ladakh. In 1885, Leh became the headquarters of a mission of the Moravian Church.
Document 11: Maldives: After the long Buddhist period of Maldivian history, Muslim traders introduced Islam. Maldivians converted to Islam by the mid-12th century. The islands have had a long history of Sufic orders, as can be seen in the history of the country such as the building of tombs. They were used until as recently as the 1980s for seeking the help of buried saints. They can be seen next to some old mosques and are considered a part of Maldives's cultural heritage.
Document 12: History of India: The early Islamic literature indicates that the conquest of India was one of the very early ambitions of the Muslims, though it was recognized as a particularly difficult one. After conquering Persia, the Arab Umayyad Caliphate incorporated parts of what are now Afghanistan and Pakistan around 720. The book Chach Nama chronicles the Chacha Dynasty's period, following the demise of the Rai Dynasty and the ascent of Chach of Alor to the throne, down to the Arab conquest by Muhammad bin Qasim in the early 8th century AD, by defeating the last Hindu monarch of Sindh, Raja Dahir.
Document 13: History of India: Like other settled, agrarian societies in history, those in the Indian subcontinent have been attacked by nomadic tribes throughout its long history. In evaluating the impact of Islam on the sub-continent, one must note that the northwestern sub-continent was a frequent target of tribes raiding from Central Asia. In that sense, the Muslim intrusions and later Muslim invasions were not dissimilar to those of the earlier invasions during the 1st millennium. What does however, make the Muslim intrusions and later Muslim invasions different is that unlike the preceding invaders who assimilated into the prevalent social system, the successful Muslim conquerors retained their Islamic identity and created new legal and administrative systems that challenged and usually in many cases superseded the existing systems of social conduct and ethics, even influencing the non-Muslim rivals and common masses to a large extent, though non-Muslim population was left to their own laws and customs. They also introduced new cultural codes that in some ways were very different from the existing cultural codes. This led to the rise of a new Indian culture which was mixed in nature, though different from both the ancient Indian culture and later westernized modern Indian culture. At the same time it must be noted that overwhelming majority of Muslims in India are Indian natives converted to Islam. This factor also played an important role in the synthesis of cultures.
Document 14: Sino-Tibetan relations during the Ming dynasty: Meanwhile, the Tumed Mongols began moving into the Kokonor region (modern Qinghai), raiding the Ming Chinese frontier and even as far as the suburbs of Beijing under Altan Khan (1507–1582). Klieger writes that Altan Khan's presence in the west effectively reduced Ming influence and contact with Tibet. After Altan Khan made peace with the Ming dynasty in 1571, he invited the third hierarch of the Gelug—Sönam Gyatso (1543–1588)—to meet him in Amdo (modern Qinghai) in 1578, where he accidentally bestowed him and his two predecessors with the title of Dalai Lama—"Ocean Teacher". The full title was "Dalai Lama Vajradhara", "Vajradhara" meaning "Holder of the Thunderbolt" in Sanskrit. Victoria Huckenpahler notes that Vajradhara is considered by Buddhists to be the primordial Buddha of limitless and all-pervasive beneficial qualities, a being that "represents the ultimate aspect of enlightenment." Goldstein writes that Sönam Gyatso also enhanced Altan Khan's standing by granting him the title "king of religion, majestic purity". Rawski writes that the Dalai Lama officially recognized Altan Khan as the "Protector of the Faith".
Document 15: Tibet: Muslims have been living in Tibet since as early as the 8th or 9th century. In Tibetan cities, there are small communities of Muslims, known as Kachee (Kache), who trace their origin to immigrants from three main regions: Kashmir (Kachee Yul in ancient Tibetan), Ladakh and the Central Asian Turkic countries. Islamic influence in Tibet also came from Persia. After 1959 a group of Tibetan Muslims made a case for Indian nationality based on their historic roots to Kashmir and the Indian government declared all Tibetan Muslims Indian citizens later on that year. Other Muslim ethnic groups who have long inhabited Tibet include Hui, Salar, Dongxiang and Bonan. There is also a well established Chinese Muslim community (gya kachee), which traces its ancestry back to the Hui ethnic group of China.
ground_truth: In 1642
sub_queries: Where did Ladakh find his guidance in religion? Answer: Tibet
When did the 5th Dalai Lama gain political control over Tibet ? Answer: In 1642