On the 11th November 1918, fighting on the First World War’s Western Front ended when representatives from the Allies and Germany signed the Armistice of Compiègne. Named after the location in which it was signed, the armistice was agreed at around 5:00 a.m. in a railway carriage that was part of Allied supreme commander Ferdinand Foch’s private train. Designed to come into effect at 11:00 a.m. Paris time, the armistice was extended three times before the Treaty of Versailles finally came into force on the 10th January 1920.
President Woodrow Wilson of the USA had outlined his war aims in the Fourteen Points that he announced in a speech in January 1918. These provided a framework for peace, and were a key factor in encouraging Germany to enter negotiations.
By the end of September, the German High Command had realised that the German cause on the Western Front was doomed. The Kaiser was informed of the situation on the 29th September, and by the 5th October the German government had contacted President Wilson of the United States to begin preparations for negotiating an armistice. However, the two sides didn’t come together until the 8th November because Britain, France and Italy were unwilling to enter discussing based on the 14 Points. By this point the German Revolution was about to result in the abdication of Kaiser Wilhelm II.
The negotiation wasn’t really a negotiation: the German delegation was presented with the terms and had no option but to sign. The railway carriage in which they did so was later used by Hitler for France’s surrender to Nazi Germany in 1940.