In 1811 Stamford Raffles led a successful Invasion to Java and Britain took possession of the colony until 1816. Raffles had Buitenzorg Palace as his residence due to the temperate climate of the hills of Bogor, while conducting most of the council meeting in the palace of Rijswijk in Batavia. During his stay he had the garden of the Buitenzorg palace transformed into an English garden, which became an inspiration for the later botanical garden.