The First Opium War (1839–1842) was a pivotal conflict between Great Britain and the Qing Dynasty of China. Sparked by China's attempts to suppress the illicit Opium Trade, it concluded with British victory and the signing of the Treaty of Nanking, marking the beginning of a new era of foreign influence in China.