the invasion of java in 1811 was a successful british amphibious operation against the dutch east indian island of java that took place between august and september 1811 during the napoleonic wars. originally established as a colony of the dutch republic, java remained in dutch hands throughout the french revolutionary and napoleonic wars, during which time the french invaded the republic and established the batavian republic in 1795, and the kingdom of holland in 1806. the kingdom of holland was annexed to the first french empire in 1810, and java became a titular french colony, though it continued to be administered and defended primarily by dutch personnel.
after the fall of french colonies in the west indies in 1809 and 1810, and a successful campaign against french possessions in mauritius in 1810 and 1811, attention turned to the dutch east indies. an expedition was dispatched from india in april 1811, while a small squadron of frigates was ordered to patrol off the island, raiding shipping and launching amphibious assaults against targets of opportunity. troops were landed on 4 august, and by 8 august the undefended city of batavia capitulated. the defenders withdrew to a previously prepared fortified position,
fort cornelis, which the british besieged, capturing it early in the morning of 26 august. the remaining defenders, a mixture of dutch and french regulars and native militiamen, withdrew, pursued by the british. a series of amphibious and land assaults captured most of the remaining strongholds, and the city of salatiga surrendered on 16 september, followed by the official capitulation of the island to the british on 18 september. the island remained in british hands for the remainder of the napoleonic wars, and was restored to the dutch in the convention of london in 1814.