First Battle of the Marne
The Germans retreated forty miles from the Marne. Since their plan had failed they did not know what to do. They had not been trained in trench warfare but their only recourse was to dig in and wait for the allies. Eventually the trenches they dug reached 300 miles in length.