Complex sentence: The garrison remained in Dunkirk until the general German surrender in May 1945, denying the Allies the use of the port, whose facilities had been demolished.
Split into simpler sentences: The garrison remained in Dunkirk until the general German surrender in May 1945. In doing so, the garrison denied the Allies the use of the port, whose facilities had been demolished.