Liepāja or Libau, as it was called in German, has always been an important port city and at the end of the 1800s, the Czar of Russia, ordered the construction of fortifications.
After the German occupation of 29 June 1941, these facilities were strengthened.
As a result of the war development, the fortification in the late 1943 was greatly enhanced and, among other things, a Anti-tank trench around the city was expanded and reinforced with bunkers for machine gun (R58c).
Libau was in 1944 together with the rest of the peninsula enclosed in the so-called Courland Pocket, and from October 1944, all supplies to the enclosed Army group Nord, was shipped via Libau, together with the northerner port city of Windau (Ventspils)
The Courland Pocket was under siege until the end of the war in May 1945 and during this period the 500.000 soldiers were mainly provided through the two ports.
Supplies came in and wounded soldiers and civilians could be evacuated.
The Anti-tank trench and the many bunkers still exist today, just east and northeast of the city.