Unlike neighboring Cartago, San José was not founded by formal decree and thus lacked a city government. It was not until the enactment of the Constitution of Cádiz in 1812 when San José had its first city government. On 18 October 1813, the area was first defined as a city by presbyter Florencio del Castillo, on behalf of the Spanish government, title which was then lost in 1814 when Ferdinand VII of Spain annulled the proceedings of the courts. The municipal government was restored in 1820 along with the title of city and in 1823 San José became the capital of Costa Rica. This makes San José is one of the youngest capital cities in Latin America by year of conception.