After a lightning victory over the ill-prepared French armies , the Germans marched on Paris and laid siege to the city , which finally capitulated in January 1871 in the face of dwindling food supplies .
The Germans were forced to surrender to the French in January 1871 .