The Philippines ; Filipino: Pilipinas [ˌpɪlɪˈpinɐs] or Filipinas [fɪlɪˈpinɐs]), officially the Republic of the Philippines , is an archipelagic country in Southeast Asia. Situated in the western Pacific Ocean, it consists of about 7,641 islands that are broadly categorized under three main geographical divisions from north to south: Luzon, Visayas, Mindanao. The capital city of the Philippines is Manila and the most populous city is Quezon City, both within the single urban area of Metro Manila. Bounded by the South China Sea on the west, the Philippine Sea on the east and the Celebes Sea on the southwest, the Philippines shares maritime borders with Taiwan to the north, Japan to the northeast, Palau to the east, Indonesia to the south, Malaysia and Brunei to the southwest, Vietnam to the west, and China to the northwest. The Philippines' position as an island country on the Pacific Ring of Fire and close to the equator makes the country prone to earthquakes and typhoons. The country has a variety of natural resources and a globally significant level of biodiversity. The Philippines has an area of around 300,000 km2 with a population of around 109 million people. As of 2020, it is the 8th-most populated country in Asia and the 13th-most populated country in the world. Multiple ethnicities and cultures are found throughout the islands. Negritos, some of the archipelago's earliest inhabitants, were followed by successive waves of Austronesian peoples who established small states ruled by Datus, Rajahs and Sultans.The arrival of Ferdinand Magellan, a Portuguese explorer leading a fleet for the Spanish, marked the beginning of Hispanic colonization. In 1543, Spanish explorer Ruy López de Villalobos named the archipelago Las Islas Filipinas in honor of Philip II of Spain. Starting from 1565, Hispanic settlement of the archipelago was established via expeditions organized from New Spain and the Philippines became part of the Spanish Empire for more than 300 years. During this time, Catholicism became the dominant religion, and Manila became the western hub of trans-Pacific trade. In 1896 the Philippine Revolution began, which then became entwined with the 1898 Spanish–American War. Spain ceded the territory to the United States, while Filipino rebels declared the First Philippine Republic. The ensuing Philippine–American War ended with the United States establishing control over the territory, which they maintained until the Japanese invasion of the islands during World War II. Following liberation, the Philippines became an independent country in 1946. Since then, the unitary sovereign state has often had a tumultuous experience with democracy, which included the overthrow of a dictatorship by the People Power Revolution. The Philippines is a founding member of the United Nations, World Trade Organization, Association of Southeast Asian Nations, the Asia-Pacific Economic Cooperation forum, and the East Asia Summit. The Philippines is considered to be an emerging market and a newly industrialized country, which has an economy transitioning from being based on agriculture to being based more on services and manufacturing.