The 9th-century Frankish settlement of Dicasmutha was situated at the mouth of a stream near the River Yser. The name is a compound of the Dutch words dijk and muide. By the 10th century, a chapel and marketplace were already established. The city's charter was granted two centuries later and defensive walls built in 1270. The economy was already then based mainly on agriculture, with dairy products and linen driving the economy. From the 15th century to the French Revolution, Diksmuide was affected by the wars between the Netherlands, France, Spain, and Austria, with a corresponding decline in activity; it was captured by Allied forces in the Capitulation of Diksmuide in 1695. The 19th century was more peaceful and prosperous.
At the outset of World War I, German troops crossed the Belgian border near Arlon, then proceeded hurriedly towards the North Sea to secure the French ports of Calais and Dunkirk. The Battle of the Yser started in October 1914. Thanks to the water the Belgians were able to stop the Germans; at the end of October, they opened the floodgates holding back the River Yser and flooded the area. As a result, the river became a front line throughout the First World War. The city was first attacked on 16 October 1914 and defended by Belgian and French troops, which marked the beginning of the battle. Colonel Alphonse Jacques led the troops that prevented Diksmuide from being taken by the German Army. Despite the heavy Belgian losses, the press, politicians, literary figures and the military itself created propaganda which formed public opinion into making the action appear strategic and heroic. By the time the fighting ended, the town had been reduced to rubble. It was, however, completely rebuilt in the 1920s.
The City Hall and neighbouring Saint Nicolas Church were completely rebuilt after World War I in the Gothic style of the 14th and 15th centuries.
The "Trench of Death", about from the centre of the city, preserves the trench setting where Belgian soldiers fought under the most perilous conditions until the final offensive of 28 September 1918.
A peace monument, the Yser Tower, was built after the First World War in the 1920s. It was demolished in 1946 because during the Second World War it had been the scene of Nazi ceremonies and collaboration. A new tower was built in the 1950s. The tower houses a World War I museum owned by the United Nations, where it is possible among other things to experience the odour of mustard gas. The Yser Tower is also the scene of the yearly IJzerbedevaart, a celebration of peace and of Flemish political autonomy. During World War II, it was used for Nazi-inspired meetings. After the war it still had problems with neo-Nazis from all over Europe. They were a minority, but the press emphasised this minority participation. However, after many years the organisers succeeded in banning neo-Nazis. The more radical Flemish faction now organizes the IJzerwake.
Several military cemeteries are located around Diksmuide, including the Vladslo German war cemetery, which is now the resting place for more than 25,000 German soldiers and has the famous sculpture of the 'Mourning parents' by Käthe Kollwitz.