A submarine pen (U-Boot-Bunker in German) is a type of submarine base that acts as a bunker to protect submarines from air attack. The term is generally applied to submarine bases constructed during World War II, particularly in Germany and its occupied countries, which were also known as U-boat pens (after the phrase "U-boat" to refer to German submarines).