Despite Luxembourg's best efforts to remain neutral in the First World War, it was occupied by Germany on 2 August 1914. On 30 August, Helmuth von Moltke moved his headquarters to Luxembourg City, closer to his armies in France in preparation for a swift victory. However, the victory never came, and Luxembourg would play host to the German high command for another four years. At the end of the occupation, Luxembourg City was the scene of an attempted communist revolution; on 9 November 1918, communists declared a socialist republic, but it lasted only a few hours.