became a new player in the archipelago After occupying Manila from 1762 to 1764, during the Seven Years' War between Spain, Great Britain and other European powers, the British Army withdrew to the south and established trading alliances between the Sulu Sultanate and the British East India Company. Spanish attacks on Jolo were now directed at weakening British trading interests in the south. In 1784, Aguilar conducted a series of unsuccessful assaults against Jolo and in 1796, Spanish admiral José Alava was sent from Madrid with a powerful naval fleet to stop the slave-raiding attacks from the Sulu Sea. The British presence was signalled when in 1798, the British Royal Navy, which had established a base in Sulu, bombarded Fort Pilar in Zamboanga. In 1803, Lord Richard Wellesley, the Governor-General of India, ordered Robert J. Farquhar to transfer trading and military operations to Balambangan island near Borneo; the resulting outpost lasted only until 1806. By 1895, the Great Britain had withdrawn its army and navy from the Sulu Sea. In 1815, the galleon trade across the Pacific Ocean between the Philippines and Mexico ended, since Mexico had declared its independence in 1810, and an extended war of independence was in progress. Most of the other Spanish-ruled areas of the Americas had also rebelled against their colonial masters. In 1821, the Philippine Islands were administered directly from Madrid, rather than via the Viceroy of Mexico, since Mexico and its southern neighbours had won their independence from Spain. The Spanish Empire sought to end the "Moro threat". In 1824, the Marina Sutil, a light and manoeuvrable naval force under Capitan Alonso Morgado was sent to confront the slave raiders in the Sulu Sea. 1844–1898: Spanish occupation In 1844, Governor General Narciso Claveria led yet another expedition against Jolo and in 1848, Claveria with powerful gunboats Magallanes, El Cano, and Reina de Castilla brought from Europe supervised the attack on the Balangingi stronghold in Tungkil. The raid resulted in the capture of many Sama Balangingi and the exile of many to the tobacco fields of Cagayan Valley. The leader of the Sama, Paglima Taupan, was not captured. With the fall of the Balangingi, a powerful ally of the Sulu Sultanate was decimated, beginning the decline of the sultanate's maritime sea power. In 1850, Governor General Juan Urbiztondo continued with Claveria's campaign and annihilated the remaining Balangingi strongholds at Tungkil. A raid on Jolo