According to archaeological studies initiated in the 1920s, human activity on Hong Kong dates back over five millennia. Excavated Neolithic artifacts suggest an influence from northern Chinese Stone-Age cultures, including the Longshan. The territory was settled by Han Chinese during the seventh century, A.D., evidenced by the discovery of an ancient tomb at Lei Cheung Uk in Kowloon. The first major migration from northern China to Hong Kong occurred during the Ching Dynasty (960-1279). The British East India Company made the first successful sea venture to China in 1699, and Hong Kong's trade with British merchants developed rapidly soon after. After the Chinese defeat in the First Opium War (1839-1842), Hong Kong was ceded to Britain in 1842 under the Treaty of Nanking. Britain was granted a perpetual lease on the Kowloon Peninsula under the 1860 Convention of Beijing, which formally ended hostilities in the Second Opium War (1856-1858). The United Kingdom, concerned that Hong Kong could not be defended unless surrounding areas were also under British control, executed a 99-year lease of the New Territories in 1898, significantly expanding the size of the Hong Kong colony.
In the late 19th century and early 20th centuries, Hong Kong developed as a warehousing and distribution center for U.K. trade with southern China. After the end of World War II and the communist takeover of Mainland China in 1949, hundreds of thousands of people emigrated from China to Hong Kong. This helped Hong Kong become an economic success and a manufacturing, commercial, and tourism center. High life expectancy, literacy, per capita income, and other socioeconomic measures attest to Hong Kong's achievements over the last four decades.