Located in the east end of Shandong Province, Weihai is surrounded by the Yellow Sea in the north, east and south with a 986 kilometers (613 miles) coastline in total. It neighbours Yantai in the west and is separated from Korean Peninsular and Japanese chain islands by the sea in the east. Weihai has an old name for Weihaiwei in Ming Dynasty (1368-1644) due to the Weihai Port which is set up to resist intruding harass brought by Japanese pirates.