of Novi Pazar was also under de facto joint occupation during that period, but the Austro-Hungarian army withdrew as part of their annexation of Bosnia. The annexation of Bosnia also led to Islam being recognized as an official state religion due to Bosnia's Muslim population. Joint government The common government (officially designated Ministerial Council for Common Affairs, or Ministerrat für gemeinsame Angelegenheiten in German) came into existence in 1867 as a result of the Austro-Hungarian Compromise. The Government of Austria, which ruled the monarchy until then became the government of the Austrian part and another government was formed for the Hungarian part. A common government was also formed for the few matters of common national security - the Common Army, navy, foreign policy and the imperial household, and the customs union. It consisted of three Imperial and Royal Joint-ministries (): Ministry of the Imperial and Royal Household and Foreign Affairs, known as the Imperial Chancellery before 1869; Imperial and Royal Ministry of War, known as the Imperial Ministry of War before 1911; Imperial and Royal Ministry of Finance, known as the Imperial Ministry of Finance before 1908, responsible only for the finances of the other two joint-ministries. The Minister of the Imperial and Royal Household and Foreign Affairs was the chairman (except when the Monarch was present and led the meetings himself) and thus he was de facto the common prime minister. Since 1869 the prime ministers of the Austrian and Hungarian halves of the monarchy were also members of the common government. The Chief of the General Staff usually attended the meetings (with no voting rights) as he had the intelligence service (the Evidenzbureau) under his subordination. When required ministers and high-ranking officials from the Austrian and the Hungarian governments could also attend the meetings, but also without voting rights. In addition to the council, the Austrian and Hungarian parliaments each elected a delegation of 60 members, who met separately and voted on the expenditures of the Ministerial Council, giving the two governments influence in the common administration. However, the ministers ultimately answered only to the monarch, who had the final decision on matters of foreign and military policy. Overlapping responsibilities between the joint ministries and the ministries of the two halves caused friction and inefficiencies. The armed forces suffered particularly from the overlap. Although the unified government determined the overall military direction, the Austrian and Hungarian governments each