The Spanish colonized the Philippines in the 16th century and established Manila as the capital. They converted many Filipinos to Catholicism and built churches, schools and other institutions. However, the Spanish faced resistance from local groups and dealt with revolts, as they imposed colonial rule through the encomienda system which abused the rights of Filipinos.