Hong Kong became a British colony after Britain and other foreign powers defeated China in the Opium War in 1841. As a British colony, Britain appointed the local governor and introduced a Western-style government. In the early years of the British colony, gambling was popular among the indigenous Chinese. The British government did not ban gambling in the newly acquired colony. At that time, there were neither casinos nor organized gambling establishments.