In violation of the Treaty of Versailles, the Kriegsmarine grew rapidly during German naval rearmament in the 1930s. The 1919 treaty had limited the size of the German navy previously, and prohibited the building of submarines.[2]