Kowloon Walled City, located in Hong Kong, was once the densest settlement on Earth, housing approximately 33,000 to 50,000 residents within 2.6 hectares during the 1980s. Originally a military outpost in the Song Dynasty, it evolved into a Qing dynasty fort by 1810 and remained largely undeveloped under British control after the Treaty of Nanking in 1842. By 1940, it had minimal infrastructure, but it transformed into a bustling metropolis following an influx of refugees from the Chinese Civil War. The settlement featured interconnected buildings with ad hoc doorways, allowing residents to navigate without going outdoors. Its development was largely unregulated, with minimal British involvement and some jurisdiction asserted by the Nationalist Chinese Government. The city was characterized by high-rise buildings, some reaching 14 stories, constructed in a vernacular style.