By late May, following the evacuation of British forces from Dunkirk, France, in Operation Dynamo, the Royal Navy was in immediate need of ships, especially as they were now fighting the Battle of the Atlantic in which German U-boats threatened Britain's supplies of food and other resources essential to the war effort.