The Bourbon dynasty seemed finished in Spain as in the rest of the world, but it would be resurrected. The Second Spanish Republic was overthrown in the Spanish Civil War, leading to the dictatorship of Francisco Franco. He named Juan Carlos de Borbón, a grandson of Alfonso XIII, his successor in 1969. When Franco died six years later, Juan Carlos I took the throne to restore the Bourbon dynasty. The new king oversaw the Spanish transition to democracy; the Spanish Constitution of 1978 recognized the monarchy.