From 1839 (the First Opium War) to 1997 (the transfer of Hong Kong).