to Lantau Island and later to Sung Wong Toi (modern Kowloon City), but the child Emperor Bing of Song committed suicide by drowning with his officials after being defeated in the Battle of Yamen. Hau Wong, an official of the emperor is still worshipped in Hong Kong today.
The earliest recorded European visitor was Jorge Álvares, a Portuguese explorer who arrived in 1513. After establishing settlements in the region, Portuguese merchants began trading in southern China. At the same time, they invaded and built up military fortifications in Tuen Mun. Military clashes between China and Portugal led to the expulsion of the Portuguese. In the mid-16th century, the Haijin order banned maritime activities and prevented contact with foreigners; it also restricted local sea activity. In 1661–69, the territory was affected by the Great Clearance ordered by Kangxi Emperor, which required the evacuation of the coastal areas of Guangdong. It is recorded that about 16,000 persons from Xin'an County were driven inland, and 1,648 of those who left are said to have returned when the evacuation was rescinded in 1669. What is now the territory of Hong Kong became largely wasteland during the ban. In 1685, Kangxi became the first emperor to open limited trading with foreigners, which started with the Canton territory. He also imposed strict terms for trades such as requiring foreign traders to live in restricted areas, staying only for the trading seasons, banning firearms, and trading with silver only. The East India Company made the first sea venture to China in 1699, and the region's trade with British merchants developed rapidly soon after. In 1711, the company established its first trading post in Canton. By 1773, the British reached a landmark 1,000 chests of opium in Canton with China consuming 2,000 chests annually by 1799.
British colonial era
Main articles: British Hong Kong, History of Hong Kong (1800s–1930s)
Flag of the British