In 1823, an order, which was from Spain, declared that military officers commissioned in the Peninsula (Spain) should have precedence of all those appointed in the Colonies. This was the reaction of Madrid to the series of wars against Spanish rule that was known as the Spanish American wars of independence. Many Creole military officers were outranked by their Peninsular counterparts. An insurgency was staged by a certain Creole captain named Andres Novales but was suppressed when Fort Santiago had not yielded to Novales and his 800 men. Madrid did not notice the growing disaffection in the Philippines, the last major colony of the Spanish rule in Asia. In 1828, matters became worse when public officials, mainly provincial governors, were also being replaced by Peninsulars.
In 1828, two Palmero brothers, members of a prominent clan in the Philippines, along with other people from both the military and the civil service, planned to seize the government. Such was the prominence of the Palmeros, one of whose most famous descendants was Marcelo Azcárraga Palmero, that when the Spanish government discovered the plan, they thought it would be wise not to report it to the public. The plot itself would embarrass the government since the conspirators were Spaniards themselves and it would seem that Spaniards themselves would want to overthrow the power of Spain in the country. The main conspirators were exiled.