Despite the poverty and squalor, Kowloon Walled City had a thriving economy. The city was a major center for manufacturing, with workshops and factories producing everything from textiles to electronics. The city's infamous markets sold everything from counterfeit goods to fresh produce. The Walled City was also a hub for illicit activities, including prostitution, gambling, and triad operations.