Operation Hannibal was a German naval operation involving the evacuation by sea of German troops and civilians from Courland, East Prussia, and the Polish Corridor from mid-January to May 1945 as the Red Army advanced during the East Prussian and East Pomeranian Offensives and subsidiary operations.