The origin of the current organization goes back to June 26, 1918, when the Azerbaijan Democratic Republic which became independent in 1918, after the collapse of the Russian Empire, formed its first navy. After the second independence of Azerbaijan in 1991, after the collapse of the Soviet Union, the Azerbaijani Navy was formed out of the former Soviet Navy in the Azerbaijani SSR.