Keelung (/kiːˈlʊŋ/ kee-LUUNG;[3] Hokkien: Ke-lâng), Chilung or Jilong (/dʒiːˈlʊŋ/ jee-LUUNG;[3] pinyin: Jīlóng), officially known as Keelung City, is a major port city situated in the northeastern part of Taiwan. The city is part of the Taipei–Keelung metropolitan area with neighboring New Taipei City and Taipei. Nicknamed the Rainy Port for its frequent rain and maritime role, the city is Taiwan's second largest seaport (after Kaohsiung), and was the world's 7th largest port in 1984. In 1626, the Spanish established Fort San Salvador at present-day Keelung, an area inhabited by Taiwanese indigenous peoples. Control of the area eventually passed to the Qing dynasty. Fighting between China and Europeans around Keelung occurred in the 19th century during the First Opium War and the Sino-French War. The island of Taiwan was ceded to the Empire of Japan in 1895 after the First Sino-Japanese War; under Japanese rule the city was called Kirun. Keelung became part of Taiwan Province under the Republic of China after 1945. Administratively, the city became a first-level subdivision in 2018 after the provincial government was abolished.