The Kedatuan of Madja-as () was founded following a civil war in collapsing Srivijaya, wherein loyalists of the Malay datus of Srivijaya defied the invading Chola dynasty and its puppet-Rajah, called Makatunao, and set up a guerrilla-state in the islands of the Visayas.Its founding datu, Puti, had purchased land for his new realms from the aboriginal Ati hero, Marikudo.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, Vietnam to the west, Palau to the east and Malaysia and Indonesia to the south.The Philippines' location on the Pacific Ring of Fire and close to the equator makes the Philippines prone to earthquakes and typhoons, but also endows it with abundant natural resources and some of the world's greatest biodiversity.Madja-as was founded on Panay island (named after the destroyed state of Pannai allied under Srivijaya which was located in Sumatra).Afterwards, the people of Madja-as often raided the port cities of southern China and warred with the Chinese navy.Landa Jocano called the "Barangic Phase" of early Philippine history, beginning from the 14th century through the arrival of Spanish colonizers and the beginning of the Philippines' colonial period.The discovery of iron at around the 1st century AD created significant social and economic changes which allowed settlements to grow larger and develop new social patterns, characterized by social stratification and specialization.
By the 1300s, a number of the large coastal settlements had become progressive trading centers, and became the focal point of societal changes, ushering complex lifeways which characterized what F.
The arrival of Ferdinand Magellan in Homonhon, Eastern Samar in 1521 marked the beginning of Hispanic colonization.
In 1543, Spanish explorer Ruy López de Villalobos named the archipelago The Philippines became part of the Spanish Empire for more than 300 years.
As the 19th century gave way to the 20th, the Philippine Revolution followed in quick succession, which then spawned the short-lived First Philippine Republic, followed by the bloody Philippine–American War.
Aside from the period of Japanese occupation, the United States retained sovereignty over the islands until after World War II, when the Philippines was recognized as an independent nation.