East Indies theatre of the French Revolutionary Wars situation in Europe had however shifted once more during 1796 when France and Spain signed the Treaty of San Ildefonso, transferring Spain from an ally of Britain to an ally of France. British attention in the East Indies therefore shifted from the French island territories to the Spanish Philippines, where the defence squadron had been badly damaged in a hurricane in April 1797 and was in dock for extensive repairs. British forces were once again in the ascendant, Rainier commanding five ships of the line, one fourth rate ship and six frigates. Extensive plans were developed by Rainier in conjunction
Dutch East Indies East Indies. In 1811 Daendels was replaced by Governor-General Jan Willem Janssens, but shortly after his arrival British forces occupied several Dutch East Indies ports including Java, and Thomas Stamford Raffles became Lieutenant Governor. Following Napoleon's defeat at the 1815 Battle of Waterloo and the Congress of Vienna, independent Dutch control was restored in 1816. Under the 1824 Anglo-Dutch Treaty, the Dutch secured British settlements such as Bengkulu in Sumatra, in exchange for ceding control of their possessions in the Malay Peninsula (Malaya) and Dutch India. The resulting borders between former British and Dutch possessions remain today between modern Malaysia