In 1894, China and Japan went to war. In a few months the Japanese defeated China's Beiyang fleet, routed the Chinese armies in Manchuria, and captured Port Arthur and Weihaiwei. Although nearly all the fighting took place in northern China, Japan had important territorial ambitions in southern China. As the war approached its end, the Japanese took steps to ensure that Taiwan would be ceded to Japan under the eventual peace treaty and that they were well placed militarily to occupy the island. In March 1895 peace negotiations between Japan and China opened in the Japanese city of Shimonoseki. Although hostilities in northern China were suspended during these negotiations, Taiwan and the Pescadores were specifically excluded from the scope of the armistice. This exclusion allowed the Japanese to mount a military operation against the Pescadores Islands in March 1895 without imperilling the negotiations. The Pescadores, lying midway between mainland China and Taiwan, were the key to a successful occupation of Taiwan. In a swift campaign in the last week of March the Japanese captured the islands, preventing further Chinese reinforcements from being sent across the Taiwan Strait to Taiwan. This brisk "fait accompli" influenced the peace negotiations, and the ensuing Treaty of Shimonoseki, concluded on 17 April 1895, duly provided for the cession by China of Taiwan to Japan. On 10 May, Admiral Kabayama Sukenori was appointed the first Japanese governor-general of Taiwan.