Francisco I. Madero arrived to the city to campaign in 1909. After civil war broke out, forces loyal to this leader entered the city on 18 May 1911 under Eugenio Aviña. Insurgents under Juan José Ríos took control of the city between 1914 and 1916, beginning a series of social and economic reforms. Venustiano Carranza was in the city in 1916. While there, he was invited by Juan José Ríos to open the public library and formalize the state's Red Battalion.