The focal point of the Spanish political resistance was the Supreme Central Junta, which formed itself to govern in the name of Ferdinand, and which managed to get the loyalty of the many provincial and municipal juntas that had formed throughout Spain in the wake of the French invasion. Likewise, in Venezuela during 1809 and 1810 there were various attempts at establishing a junta, which took the form of both legal, public requests to the Captain General and secret plots to depose the authorities.[1] The first major defeat that Napoleonic France suffered was at the Battle of Bailén, in Andalusia. (At this battle Pablo Morillo, future commander of the army that invaded New Granada and Venezuela; Emeterio Ureña, an anti-independence officer in Venezuela; and José de San Martín, the future Liberator of Argentina and Chile, fought side-by-side against the French General Pierre Dupont.)