During the Second World War, the Dutch navy was based in Allied countries after the Netherlands was conquered by Nazi Germany in a matter of days: the Dutch navy had its headquarters in London, England, and smaller units in Ceylon (modern day Sri Lanka) and Western Australia.
Around the world Dutch naval units were responsible for transporting troops, for example during Operation Dynamo at Dunkirk and on D-Day, they escorted convoys and attacked enemy targets. During the war the navy suffered heavy losses, especially in defending the Dutch East Indies, most notably the Battle of the Java Sea in which the commander, Dutchman Karel Doorman, went down with his fleet along with 1,000 of the ships' crew. One Dutch light cruiser that was under construction was captured in its shipyard by Nazi Germany.