 "U-539" arrived at Flensburg on 22 September, after a patrol lasting 145 days, her longest.In mid-April 1945 "U-539" sailed to Horten Naval Base, then to Bergen in early May, arriving there three days before the German surrender on 8 May 1945.The U-boat was transferred from Bergen to Loch Ryan in Scotland on 30 May 1945 for Operation Deadlight.