After a stunning German offensive along the Western Front in the spring of 1918, the Allies rallied and drove back the Germans in a series of successful offensives. On 4 November 1918, the Austro-Hungarian empire agreed to an armistice, and Germany, which had its own trouble with revolutionaries, agreed to an armistice on 11 November 1918, ending the war in victory for the Allies.