Viceroy of Zhili
In the early 1870s, Korea under the Joseon dynasty was in the midst of a struggle between isolationists under King Gojong's father Heungseon Daewongun, and progressives, led by Empress Myeongseong, who wanted to open trade. After the Meiji Restoration, Japan had adopted an aggressive foreign policy, contesting Chinese domination of the peninsula. Under the Treaty of Ganghwa, which the Koreans signed with reluctance in 1876, Japan was allowed to send diplomatic missions to Hanseong, and opened trading posts in Incheon and Wonsan. Amidst an internal power struggle which resulted in the queen's exile, the Viceroy of Zhili, Li Hongzhang, sent the 3,000 strong Qing Brigade into Korea. The Korean king proposed training 500 troops in the art of modern warfare, and Yuan Shikai was appointed to lead this task in Korea. Li Hongzhang also recommended Yuan's promotion, with Yuan given the rank of "sub-prefect".