Java campaign of 1806–1807

Following these successes, Pellew was able to bring his main force to bear on the island and in November 1806 launched a major raid on Batavia, destroying the remaining frigate and a number of minor warships from the Dutch squadron.

The French Empire and its client state the Kingdom of Holland held significant naval bases in the region, from which their warships could operate against British interests.

The French islands of Île Bonaparte and Isle de France dominated the central Indian Ocean, their position allowing raiders to cruise British trade routes and attack isolated convoys, while the Dutch colonies at the Cape of Good Hope and the Dutch East Indies controlled the points of entry to the ocean from east and west with their own naval squadrons.

[4] In 1803 at the outbreak of the Napoleonic Wars, a French squadron under Rear-Admiral Charles Linois was already operating in the Indian Ocean against British commerce, initially based at Isle de France.

In 1804, this convoy was worth over £8 million and included 29 ships which—due to the sudden news of the outbreak of war—were entirely unprotected by the Royal Navy during the first leg of its journey across the South China Sea.

Ultimately Linois failed to defeat the convoy, withdrawing after some initial skirmishing at the Battle of Pulo Aura, but the importance of Batavia as a base against British shipping was confirmed.

[7] The British commander in the Indian Ocean, Rear-Admiral Peter Rainier, was preoccupied with protecting merchant shipping off India during 1804 and 1805 to be able to risk an expedition to the Java Sea.

This squadron—which consisted of four ships of the line, three frigates and a number of smaller warships—was principally tasked with anti-piracy operations, but their presence so close to the Malacca Straits was a source of concern to the British command in India.

[4] Pellew's efforts to launch a major deployment in 1806—initially planned to be against Isle de France in conjunction with Rear-Admiral Sir Thomas Troubridge before the target was changed to Java—were delayed by the diversion of his Royal Marines to put down the Vellore Mutiny.

In response to the British ships, the Dutch commander N. L. Aalbers formed his convoy into a line of battle, hoping to dissuade Elphinstone from pressing home his attack.

Within 40 minutes, Pallas had surrendered and Harrier then successfully chased down and captured the two merchant ships while the corvette fled to the Sulawesi coast, evading pursuit.

Sailing to investigate, Caroline arrived off the port on 18 October, but encountered two Dutch brigs that raised the alarm, allowing Phoenix to escape into the main harbour.

In a battle lasting 30 minutes, the Dutch ship was defeated and captured, Rainier sending the prisoners on shore and removing the frigate, which was later renamed HMS Java.

At 15:30, with Psyche rapidly overtaking the Dutch ships, their captains deliberately drove the vessels ashore approximately 9 nmi (10 mi; 17 km) west of Semarang.

[24] In the summer of 1807, responsibility for the blockade of the French Indian Ocean bases passed from Pellew at Madras to Rear-Admiral Albemarle Bertie at the Cape of Good Hope.

[25] As Pellew's squadron neared Griessie, a message arrived from the Dutch civilian governor at Sourabaya, reversing Cowell's orders and offering a full surrender.