It was a socialist state and a federation made up of Bosnia and Herzegovina , Croatia , Macedonia , Montenegro , Serbia , and Slovenia . In 1992 , the two remaining states still committed to a union , Serbia and Montenegro , formed the Federal Republic of Yugoslavia , which had not been recognized as the successor of the SFRY by international leaders . This move , however , was not granted legitimacy by the international community , and Yugoslavia was considered completely dissolved into five successor states : Bosnia and Herzegovina , Croatia , Macedonia , Slovenia and FR Yugoslavia ( later renamed into `` Serbia and Montenegro '' ) .