The fragmented and sparsely populated nature of the islands made it easy for Spanish colonialization. The Spanish then brought political unification to most of the Philippine archipelago via the conquest of the various small maritime states although they were unable to fully incorporate parts of the sultanates of Mindanao and the areas where the ethnic groups and highland plutocracy of the animist Ifugao of Northern Luzon were established. The Spanish introduced elements of western civilization such as the code of law, western printing and the Gregorian calendar alongside new food resources such as maize, pineapple and chocolate from Latin America.