Under the "law of the ambulance" stipulated in the Covenant of Concord, interim constitution promulgated in 1821, in 1821 the seat of the supreme authorities of Costa Rica began to rotate between the towns of Cartago, San José, Heredia and Alajuela. In this circumstance, San Jose was the capital for the first time from May to August 1822.