The Magdiwang was a chapter of the Katipunan, a Philippine revolutionary organization founded by Filipino rebels in Manila in 1892, with the aim to gain independence from Spain. The Magdiwang Council was acknowledged "as the supreme organ responsible for the successful campaigns against the enemy."The Magdiwang chapter was started by Mariano Álvarez, related by marriage to Andrés Bonifacio, the leader of the Katipunan. Both the Magdiwang and the Magdalo (led by Baldomero Aguinaldo, the cousin of Emilio Aguinaldo) were the two major Katipunan factions in Cavite, with the Magdiwang having control over a larger number of towns and municipalities.
The Magdalo faction of the Katipunan was a chapter in Cavite, mostly led by Principalias of that province.It was named after Mary Magdalene, patroness of Kawit, Cavite. It was officially led by Baldomero Aguinaldo, but his cousin Emilio Aguinaldo (whose own Katipunan codename was "Magdalo") was its most famous leader.