The Spaniards arrived in the Philippines in 1521 and ruled the country for more than 300 years. Then came the Americans in 1898. The country was subject to them politically until the Japanese invasion in 1941. The Japanese occupation lasted for at least five years.