In 1811, after the annexation of the Kingdom of Holland by France during Napoleon's war, Raffles had no choice but to leave the country. He mounted a military expedition against the Dutch and French in Java, in the Dutch East Indies. The war was swiftly conducted by Admiral Robert Stopford, General Frederick Augustus Wetherall, and Colonel Robert Rollo Gillespie, who led a well-organised army against an opposing army of mostly French conscripts with little proper leadership.