The first Opium War was ended by the Treaty of Nanjing, which was signed on August 29, 1842. ... The Opium Wars greatly expanded Western influence in China. The wars also led to the weakening of the Chinese dynastic system and paved the way for uprisings such as the Taiping and Boxer rebellions.