Yugoslavia came into existence in 1918 after World War I. Most of its northern territories were given to it from Austria-Hungary when it collapsed during the war. Its territories were reconquered by Serbia from the Ottoman Empire during the Balkan Wars (1912-13). The reigning king in Serbia became the king of all Yugoslavia.