An Armenian military corps was established to fight against the Ottomans during the Turkish–Armenian War in early 1918. In accordance with the Treaty of Batum of 4 June 1918 the Ottoman Empire demobilized most of the Armenian army. Ethnic Armenian conscripts and volunteers in the Imperial Russian Army would later become the core of the military of the First Armenian Republic.