By 26 May the BEF was cut off and the decision was made to evacuate it through Dunkirk (Operation Dynamo). I Corps acted as rearguard, forming a defensive perimeter around the port while the evacuation went on, the last troops that could be rescued leaving on 4 June.