<human>:  When did Hong Kong become a British colony?
<bot>: Hong Kong was a British colony from 1842 to 1997. Before then, it was a Portuguese colony, a Dutch colony, and a Chinese colony. The British took control of Hong Kong after defeating the Chinese forces in the First Opium War.