After the 1512 conquest and annexation of Navarre to Spain, Pamplona remained as capital of the semiautonomous kingdom of Navarre, which preserved its own (reformed) institutions and laws. Pamplona became a Castilian-Spanish outpost at the foot of the western Pyrenees. After the Castilian conquest, king Ferdinand V ordered in 1513 the demolition and removal of the medieval castle and the city's monasteries, as well as the building of a new castle in a very close place. In 1530, with Navarre under Spanish military occupation, the Castilian viceroy was still expecting a "French invasion", and in fear of a possible revolt of the city dwellers, he requested an additional 1,000-strong force from what he called "healthy land", i.e. Castile, besides the 1,000 stationed already in Navarre.