It was declared the national anthem of Spain in 1822, remaining so until the overthrow of the liberal government the next year in 1823, and was also one of the popular anthems used in the First Spanish Republic (1873–1874) and, with much more prominence, the Second Spanish Republic (1931–1939). It continued to be used by the Second Republican government in exile until it was dissolved in 1977 upon the end of the Francoist Spanish State in 1975.