The Spanish located most of their capitals inland to protect them against attacks from rival nations and to be close to the centers of power. Inland locations also made it easier to control the regions under Spanish control, and to have access to resources like gold and silver.