The Soviet Navy had a number of small battalion-sized naval infantry and coastal defence units that mostly served in the ports and bases before the Second World War. During the war, and building on the visuals of the mutinied sailors of Petrograd in 1917, the Stavka ordered formation of naval infantry brigades from the surplus to either ship or shore duty sailors, and forty brigades served in mostly ground troops roles until 1944 when they were used for amphibious operations in Norway and along the Black Sea coast.