Federalism in Spain began in the 1830s, although it has its roots in the 1790s. The first and only attempt to establish a federal state in Spain occurred during the First Spanish Republic (1873-1874). After this failure, federalism was a minority political current. In the Second Spanish Republic and in the Transition, an intermediate model was chosen between federalism and centralism — the integral state, in the first case; and the regional state in the second.