Located 48 kilometers inland, Manila has been the largest city and the most important seaport in the Philippines for centuries, from the colonial rule of Spain, Japan and the United States, to the establishment of the Philippines in 1946.