After the Soviet Union collapsed in 1991, its railway system broke up into national railway systems of many countries which used to be in the Soviet Union. The Republic of Azerbaijan became independent the same year and the Azerbaijan Railways was made.