The Katipunan, a nationalist secret society, was founded on July 7, 1892 with the aim of uniting the peoples of the Philippines and fighting for independence and religious freedom. The Philippine Revolution began on August 26, 1896 and was led by Andres Bonifacio, the leader of the Katipunan. On November 18, 1897, a Katipunan council was formed in western Pangasinan with Roman Manalang as Presidente Generalisimo and Mauro Ortiz as General. General Emilio Aguinaldo proclaimed Philippine independence on June 12, 1898. Dagupan City, the major commercial center of Pangasinan, was surrounded by Katipunan forces by July 18, 1898. The Battle of Dagupan lasted from July 18 to July 23 of that year with the surrender of 1,500 soldiers of the Spanish forces under Commander Federico J. Ceballos and Governor Joaquin de Orengochea.