The inexorable advance of the Allied armies during the second half of 1918 persuaded the German commanders that defeat was inevitable, and the government was forced to sue for conditions of an armistice.