 Because of the lack of agreement on these two possible outcomes, the first civil war of Costa Rica occurred.The Battle of Ochomogo took place on the Hill of Ochomogo, located in the Central Valley in 1823.The conflict was won by the Republicans and, as a consequence, the city of Cartago lost its status as the capital, which moved to San José.