Filipino nationalism began with an upsurge of patriotic sentiments and nationalistic ideals in the 1800s Philippines that came as a consequence of more than three centuries of Spanish rule. This served as the backbone of the first nationalist revolution in Asia, the Philippine Revolution of 1896, and continues up to this day. These nationalistic sentiments have led to a wide-ranging campaign for political, social, and economic freedom in the Philippines.
In the years before the 11th century, the Philippines was divided into numerous principalities known as barangays, a name derived from Malayan boats called balangays. These small political units were ruled by datus, rajahs or sultans. In 1565, European colonization began in earnest when Spanish explorer Miguel López de Legazpi arrived from Mexico and formed the first European settlements in Cebu. Beginning with just five ships and five hundred men accompanied by Augustinian monks, and further strengthened in 1567 by two hundred soldiers, he was able to repel competing Portuguese colonizers and to create the foundations for the Spanish colonization of the Archipelago. In 1571, the Spanish occupied the kingdoms of Maynila and Tondo and established Manila as the capital of the Spanish East Indies. This Spanish colonization united the Philippine archipelago into a single political entity.
The term "Filipino" originally referred to the Spanish criollos of the Philippines . During their 333-year rule of the Philippines, the Spanish rulers referred the natives as indios.
Also during the colonial era, the Spaniards born in the Philippines, who were more known as insulares, criollos, or Creoles, were also called "Filipinos." Spanish-born Spaniards or mainland Spaniards residing in the Philippines were referred to as Peninsulares. Those of mixed ancestry were referred to as Mestizos. The Creoles, despite being regarded by the Peninsulares as inferior to them, had enjoyed various government and church positions, and composed the majority of the government bureaucracy. The sense of national consciousness came from the Creoles, who now regard themselves as "Filipino". It was brought to its advent by three major factors: 1) economy, 2) education and 3) secularization of parishes.