The Conspiracy of Macchia or Congiura di Macchia was a three-day uprising occurring in Naples in 1701, immediately after the ascension of the first Bourbon monarch to the Spanish throne, an event that precipitated the War of the Spanish Succession. In this short revolt, Neapolitan nobles attempted to seize control of the kingdom from the Spanish viceroy, but failed.
After the death of the Habsburg Charles II of Spain, a number of noble families of Naples did not favor transferring allegiance to the new Bourbon King, Philip V, and formed a conspiracy to transfer the rule instead to a king from the family of the Austrian Habsburg monarch Leopold I. Some perhaps hoped in the process to acquire more power for themselves. In addition, there was also some distaste among the nobility for the present Spanish viceroy, Luis Francisco de la Cerda, Duke of Medinaceli. The Austrian monarchy aided such machinations by releasing to Italy two of their Italian mercenary soldiers, Giovanni Carafa, the brother of the Count of Policastro Giuseppe Capace; and Don Carlo di Sangro (Prince of San Severo). In Rome, by 1701 they were joined by Giacomo Gambacorta, Prince of Macchia, who had till then lead Neapolitan troops fighting for Spanish crown in Catalonia. He disguised his trip to Rome with the excuse of addressing some pressing family issues.
In Rome, the Prince of Macchia hoped to have troops of Prince Eugene of Savoy, allies of the Habsburgs, move with him to Naples. The Duke of Medinaceli, through spies, became aware of the conspiracy, and blocked the entry of foreigners to Naples. By then in Naples and aware that the viceroy would soon react, the Prince of Macchia, Prince of Chiusano, Tiberio Carafa, and Giuseppe Carafa joined with the Princes of Caserta and Riccia. On September 21, 1701, these nobles took to the streets calling for the Habsburg Archduke Charles (second son of Leopold) to become King of Naples.
Arriving to the lower-class neighborhood of Mercato, the assembled populace showed little interest in a revolution to overthrow the Spanish rule. They reminded Gambacorta that when Masaniello and the common people had led a revolution in 1647 against the Spanish Habsburgs, the nobility had not supported the revolution. So why, they asked through their representatives, should the people support the nobility now.