added Guanacaste (modern day Liberia) to Costa Rica. The village of Guanacaste grew in importance and gradually overtook the village of Nicoya as the most important settlement in the area. On 23 July 1831, the settlement of Guanacaste was given the title of Villa de Guanacaste. Just a few years later on 3 September 1836 it was given the name Ciudad de Guanacaste (City of Guanacaste). In 1838 after the Federal Republic of Central America began to dissolve, Costa Rica formally withdrew and proclaimed itself a sovereign state. On 7 December 1848 Costa Rica divided its national territory into provinces, cantons, and districts. The territory encompassing Nicoya, Bagaces, Santa Cruz, Guanacaste (modern day Liberia) and Cañas became part of the newly formed province of Guanacaste. On 30 May 1854, a government decree changed the name of the City of Guanacaste (Ciudad de Guanacaste) to the City of Liberia (Ciudad de Liberia). The name of the province of Guanacaste was changed to Moracia in honor of then Costa Rican president Juan Rafael Mora Porras. In August 1859, Juan Rafael Mora Porras was overthrown in a coup d'état orchestrated by Dr. Jose Maria Montealegre. On 20 June 1860 during the administration of new Costa Rican president Dr. Jose Maria Montealegre, the name of the province was switched back from Moracia to Guanacaste. Montealegre kept the name City of Liberia but saw it unfit to keep a province named after a political enemy. Today, the Annexation of Guanacaste is celebrated annually on 25 July to celebrate the date in which the province became a part of Costa Rica instead of Nicaragua. Liberia holds a large festival as it is the capital of Guanacaste where one can find folk dances, parades, cattle shows, local food, and other cultural traditions in the area. Music is a large part of the festival and the traditional "marimba" is very popularly heard. A parade also takes place in the centre of the city where children put on masks and costumes to march. Liberia's importance continued to grow and it became a major center for agriculture and livestock. The construction of the Pan-American Highway further increased Liberia's importance and increased commerce in and out of the city. By the late 20th century, Liberia became a major stopping point for tourists traveling to the Pacific Coast beaches of Guanacaste. Today Liberia and the province of Guanacaste accept 25 July 1824