 Nuri Pasha's army occupied large parts of the Azerbaijani Democratic Republic without much opposition, influencing the fragile structure of the newly formed state.Ottoman interference led some elements of Azerbaijani society to oppose Turks.On 4 June 1918, Azerbaijan and the Ottoman Empire signed a treaty of friendship and cooperation, clause 4 of which held that the Ottoman Empire would provide military assistance to Azerbaijan, if such assistance was required for maintaining peace and security in the country.