Costa Rica has never changed its capital city. San José has been the continuous capital since 1823, shortly after the country’s independence from Spain.