Following more than three decades of conservative dictatorship in Mexico Porfirio Díaz was overthrown by the idealistic Francisco Madero in 1911. Madero was impractical and disorganized and the unrest, which had characterized the last years under Díaz, continued throughout the brief presidency of his successor. In February 1913 a rising under Félix Díaz, nephew of the old dictator, led to civil war within the capital. The fall of Madero was assured when General Victoriano Huerta, who commanded the government forces, switched sides and implemented the arrest of the President. A pact between Félix Díaz and Huerta led to the provisional presidency of Huerta with Díaz lurking in the background as potential candidate for the permanent presidency.