Raffles was heavily involved in the capture of the Indonesian island of Java from the Dutch during the Napoleonic Wars, and the running of day-to-day operations on Singapore. He also wrote "The History of Java" (1817).