Submarine attacks on Britain's vital maritime supply routes (Battle of the Atlantic) started immediately at the outbreak of war, although they were hampered by the lack of well placed ports from which to operate. Throughout the war the Kriegsmarine was responsible for coastal artillery protecting major ports and important coastal areas. It also operated anti-aircraft batteries protecting major ports.[6]