A presidio (from the Spanish, presidio, meaning "jail" or "fortification") is a fortified base established by the Spanish in areas under their control or influence. The term is derived from the Latin word praesidium meaning protection or defense. The fortresses were built to protect against pirates, hostile Native Americans, and colonists from enemy nations. Later in western North America, with independence, the Mexicans garrisoned the Spanish presidios on the northern frontier and followed the same pattern in unsettled frontier regions like the Presidio de Sonoma, at Sonoma, California and the Presidio de Calabasas, in Arizona. In western North America, a rancho del rey or kings ranch would be established a short distance outside a presidio. This was a tract of land assigned to the presidio to furnish pasturage to the horses and other beasts of burden of the garrison. Mexico called this facility "rancho nacional".