The Young Turk movement took control of the Ottoman Empire after a coup in 1912 which deposed Sultan Abdul Hamid II. The movement supported a centralised form of government and opposed any sort of autonomy desired by the various nationalities of the Ottoman Empire. An allegiance to Ottomanism was promoted instead. An Albanian uprising in 1912 exposed the empire's northern territories in Kosovo and Novi Pazar, which led to an invasion by the Kingdom of Montenegro. The Ottomans suffered a serious defeat at the hands of Albanians in 1912, culminating in the Ottoman loss of most of its Albanian-inhabited lands. The Albanians threatened to march all the way to Salonika and reimpose Abdul Hamid.