The First Opium War, also known as the First Anglo-Chinese War, was fought between the United Kingdom and China, which was then under the rule of the Qing Dynasty. The war began on March 18, 1839, and came to an end on August 29, 1842, with a British victory and the Treaty of Nanking. It was one of the major wars of the 19th century.