The Reform War (17 December 1857 – 11 January 1861) or War of Reform (Spanish: Guerra de Reforma), also known as the Three Years' War (Spanish: Guerra de los Tres Años), and the Mexican Civil War, was a complex civil conflict in Mexico fought between Mexican liberals and conservatives with regional variations over the promulgation of Constitution of 1857. It has been called the "worst civil war to hit Mexico between the War of Independence of 1810–21 and the Revolution of 1910–20". Following the liberals' overthrow of the dictatorship of conservative Antonio López de Santa Anna, liberals passed a series of laws codifying their political program. These laws were incorporated into the new constitution. It aimed to limit the political power of the executive branch, as well as the political, economic, and cultural power of the Catholic Church. Specific measures were the expropriation of Church property; separation of church and state; reduction of the power of the Mexican Army by elimination of their special privileges; strengthening the secular state through public education; and measures to develop the nation economically.
The constitution had been promulgated on 5 February 1857 was to come into force on 16 September 1857. There was intense opposition from Conservatives and the Catholic Church over its anti-clerical provisions, but there were also moderate liberals, including President Ignacio Comonfort, who considered the constitution too radical and likely to trigger a civil war. The Lerdo Law forced the sale of most of the Church's rural properties. The measure was not exclusively aimed at the Catholic Church, but also Mexico's indigenous peoples, which were forced to sell sizeable portions of their communal lands. Controversy was further inflamed when the Catholic Church decreed the excommunication of civil servants who took a government-mandated oath upholding the new constitution, which left Catholic civil servants with the choice of losing their jobs or being excommunicated.