The port of Weihaiwei served as the base for the Chinese Beiyang Fleet (Northern Seas Fleet), founded in 1871 during the later years of the Qing dynasty in China. In 1895, Japanese land and sea forces captured the port in the Battle of Weihaiwei, the last major battle of the First Sino-Japanese War of 1894–1895. The Japanese withdrew in 1898.