In 1894 China and Japan went to war. In a few short 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. Possession of the Pescadores, lying midway between mainland China and Taiwan, was the key to a successful occupation of Taiwan.