During the Mexican Revolution, local armed groups, such as the one led by Francisco P. Mariel in Huejutla, faced off against government troops. Forces led by Nicolas Flores took Jacala and threatened Zimapan and Ixmiquilpan in 1911. Later that same year Gabriel Hernandez took Tulancingo and Pachuca, forcing the then-governor out of power. After Porfirio Díaz fled the country, several factions would vie for power here. The government of the state was seized in 1915 by Agustin Sangins, who declared himself in favor of Victoriano Huerta, prompting opponents to take up arms in the Huasteca area, Jacala and Tulancingo. Victory initially went to those in support of Huerta. When Huerta's government fell, the state had a chaotic succession of governors, each of whom supported different factions. When the war finally wound down by 1920, the state had a new constitution.