With pro-Japanese and pro-Russian factions within the Joseon dynasty competing for power, the increasingly unstable political situation in Korea was endangering the economic and strategic interests of both Japan and Russia. After the assassination of Empress Myeongseong, Korean Emperor Gojong had taken refuge in the Russian consulate in Seoul at the invitation of Russian envoy Karl Ivanovich Weber, and Russia had thus attained a paramount influence over Korean politics at the time. This was confirmed in the Komura-Waeber Memorandum, which granted Russia the right to station four companies of troops in Korea, and required that Japan recognize Korea's new "pro-Russian faction" cabinet led by Yi Wan-yong.
The Agreement had two non-public provisions. In the first, Japan and Russia affirmed their mutual right to send additional troops to Korea in the event of any major disturbance, and in the second, both countries affirmed their rights to station troops in Korea until such time that Korea had its own modern army equipped to handle such disturbances. When Yamagata agreed to the terms of the agreement with Lobanov, he was unaware that only a few days earlier, the Russians had signed the Li-Lobanov Treaty with China, a de facto alliance against Japan, in which Russia gained unrestricted access to Manchuria and a lease over the Liaotung Peninsula.[3]