text: action of 18 october 1806 the action of 18 october 1806 was a minor naval engagement during the napoleonic wars , fought between the british royal navy frigate hms caroline and a dutch squadron at the entrance to batavia harbour on java in the dutch east indies . during the battle the dutch frigate maria riggersbergen was left unsupported by the remainder of the squadron and , isolated , was forced to surrender . [ note a ] captain peter rainier , the british commander , was subsequently free to remove his prize from within sight of the dutch port when the remainder of the dutch squadron refused to engage caroline and their crews deliberately grounded the ships to avoid capture . he also returned many prisoners taken previously in a captured brig . the action , and that of with the earlier action of 26 july 1806 , demonstrated the weakness of the dutch squadron in the east indies and convinced rear - admiral sir edward pellew to lead an operation against batavia to eliminate the remainder of the dutch squadron in november 1806 . this second raid was only partially successful , and was followed a year later by a raid on the harbour of griessie , in which the last dutch warships in the east were eliminated . background by 1806 , the french squadron under rear - admiral charles linois departed for the atlantic ocean and a british expeditionary force captured the cape of good hope . rear - admiral sir edward pellew , commander of the british royal navy in the eastern half of the indian ocean at madras in british india in the eastern half of the indian ocean was now able to concentrate on a major threat to british shipping in the region ; the dutch squadron based in the dutch east indies , specifically on java at the port of batavia . the dutch squadron , which consisted of a number of old ships of the line , three frigates and a number of smaller warships , was primarily an anti - piracy force . however , their presence so close to the straits of malacca , a major british trade route , was of concern to pellew , particularly following the battle of pulo aura in 1804 , when linois 's squadron intercepted a vital british convoy in the strait , using batavia both as a base to launch the operation and repair damage afterwards . determined to eliminate the dutch squadron , pellew despatched frigates to the region in the spring of 1806 , under orders to disrupt trade and reconnoitre the dutch harbours and bases . in july 1806 , the frigate hms greyhound cruised the molucca islands , and captured a dutch frigate and convoy at the action of 26 july 1806 off celebes , encouraging further expeditions . in october 1806 , a second frigate , the 36 - gun hms caroline under captain peter rainier ( nephew of admiral peter rainier whom pellew had replaced ) , cruised in the java sea . caroline had a successful start to the operation , discovering that the dutch ships of the line had left batavia harbour and sailed eastwards . he had also captured a number of dutch ships so that by mid - october 57 of rainier 's crew , more than a fifth , were aboard prizes on the journey back to india , leaving caroline with just 204 men and a large number of prisoners carried below decks . battle on 18 october , rainier was cruising in the java sea when he encountered and captured a small dutch brig sailing from bantam . from prisoners removed from this ship , rainier learned that the dutch frigate phoenix was undergoing repairs at the small island of onrust in the thousand islands . deciding that phoenix was lying in an exposed position and could be easily attacked , rainier sailed caroline towards onrust , but was spotted in the passage between and amsterdam islands by two small dutch warships . rainier attacked the small vessels , seizing the 14 - gun brig zeerop without a shot fired . the other vessel zee - ploeg escaped into shallow coastal waters , where the deeper drafted frigate could not follow . the delay allowed phoenix to sail to batavia ahead of caroline 's pursuit . as caroline neared batavia , phoenix entered the well - defended harbour , making further pursuit impossible . however , rainier then sighted a second frigate , lying at anchor in batavia roads , accompanied only by the 14 - gun corvette william , the elusive brig zee - ploeg , and the 18 - gun ship patriot that belonged to the dutch east india company . prisoners from zeerop identified this ship as the 36 - gun maria riggersbergen under captain claas jager . although this force was significantly stronger than caroline , and could call on the support of approximately 30 gunboats anchored closer inshore , rainier immediately gave orders to advance on the dutch frigate . in his preparations for battle , rainier ordered that springs be placed on his anchor cables , giving his ship the ability to easily turn at anchor to face new threats once engaged with the maria riggersbergen . as caroline approached , captain jager ordered his men to open fire on the british frigate at extreme range , also calling on support from the other dutch vessels anchored nearby . in response , rainier gave orders for his men to hold fire , enduring the dutch guns until his frigate was just 40 yards ( 37 m ) away before unleashing a full broadside . jager responded , but the british fire was too strong and within half an hour the dutch flag was struck . taking possession of the dutch frigate , lieutenant discovered that 50 of the 270 men aboard had been killed or wounded and that the ship had suffered moderate damage to its masts and rigging . british casualties in the engagement were three killed outright and eighteen more wounded , six of whom subsequently died . also killed were four dutch prisoners who had been sheltering in the hold . while was boarding maria riggersbergen , rainier had turned his attention to the other ships in the bay . however the sea was shallow and crossed by shoals that prevented further advance without proper charts , which caroline lacked . although they had fired a number of shots at long - range , the interference by the smaller dutch vessels during the battle had been negligible . following the surrender of maria riggersbergen , most of the shipping in the bay including all seven of the merchant vessels , the three small warships and phoenix , had deliberately beached themselves to avoid capture . abandoning the idea of further operations off batavia as too risky , rainier ordered his ships to sail , placing most of the dutch prisoners , including the wounded and sick , into the first brig captured that morning and ordering the ship to return to batavia as a cartel , with the officers placed under parole restrictions . with most of his prisoners removed , rainier then ordered maria riggersbergen and zeerop to return to madras . aftermath ranier 's action against what appeared to be superior power and numbers exposed the poor quality of the dutch squadron at batavia . pellew determined to make a decisive attack on the capital of the dutch east indies during 1806 . in november he led a powerful squadron to the harbour , once again forcing the dutch to their squadron ashore , where it was burnt by boarding parties led by admiral pellew 's son , captain fleetwood pellew . the following year , admiral pellew returned in search of the missing ships of the line , discovering them at griessie and causing the dutch to destroy them too . with the dutch squadron eliminated , the threat to british trade routes was removed and attention returned to the french bases in the indian ocean , the british waiting until 1811 to force the surrender of the remaining dutch colonies in the east indies . maria riggersbergen was recommissioned into the royal navy as hms java , under captain george pigot . in his report after the battle , rainier described the dutch frigate as " launched in 1800 and is a fast sailing ship " . the 2 , 500 nautical miles ( 4 , 600 km ) journey to madras had revealed that she was in fact much older and very unstable at sea . java and all hands disappeared six months later in a february 1807 hurricane in the west indian ocean while in convoy with the flagship of sir thomas troubridge hms blenheim during a hurricane in the western indian ocean . rainier remained in the pacific for some time , capturing the valuable spanish ship san raphael in january 1807 , but ultimately his career stalled on his return to europe .