Java campaign of 1806–07  The Java campaign of 1806–1807 was a minor campaign during the Napoleonic Wars by British Royal Navy forces against a naval squadron of the Kingdom of Holland, a client state of the French Empire, based on the island of Java in the Dutch East Indies. Seeking to eliminate any threat to valuable British merchant convoys passing through the Malacca Straits, Rear-Admiral Sir Edward Pellew determined in early 1806 that the Dutch naval forces based at Java, which included several ships of the line and three frigates, had to be defeated to ensure British dominance in the region. Lacking the forces to effect an invasion of the Dutch colony, Pellew instead sought to isolate and blockade the Dutch squadron based at Batavia in preparation for raids specifically targeting the Dutch ships with his main force. Although his plans were delayed by inadequate resources and the Vellore Mutiny in India, Pellew sent the frigate HMS Greyhound to the Java Sea in July 1806. "Greyhound" intercepted and defeated a Dutch convoy off the coast of Sulawesi on 25 July and three months later the frigate HMS Caroline managed to capture the Dutch frigate Maria Riggersbergen at the entrance to Batavia harbour. 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 Dutch ships of the line had escaped prior to Pellew's attack to the harbour of Griessie near Surabaya, and although they were old and in a poor state of repair Pellew was forced to lead a second operation to Java in October 1807, capturing the port and eliminating the last Dutch naval forces in the east. The victory gave Britain dominance over its European rivals in the eastern Pacific and western Indian Ocean, allowing free passage of British trade through the region and allowing British forces to focus on the one remaining threat to their merchant convoys in the Indian Ocean: the French islands of Île Bonaparte and Isle de France (now Mauritius). At the start of 1806, control of the Indian Ocean in the Napoleonic Wars was disputed. 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.