In the 19th century during the Philippine Revolution, Andrés Bonifacio founded the Katipunan, a revolutionary organization against Spain at the Cry of Pugad Lawin. Some notable battles were the Siege of Baler, The Battle of Imus, Battle of Kawit, Battle of Nueva Ecija, the victorious Battle of Alapan and the famous Twin Battles of Binakayan and Dalahican. During Independence, the President General Emilio Aguinaldo established the "Magdalo", a faction separate from "Katipunan", and he declared the Revolutionary Government in the constitution of the First Philippine Republic.