Before Montenegro became a country, it was kingdom, i.e in 1905 before the first world war. After the war it became a part of Yugoslavia and later on it separated into two countries, Serbia and Montenegro.