candidate: Although the armies of the Ottoman Empire eventually occupied the South Caucasus in the summer of 1918 and stood poised to crush the republic , Armenia resisted until the end of October , when the Ottoman Empire capitulated to the Allied powers .