The earliest finds in the city date to the Neolithic, and the Romans built a settlement called Divio on the road between Lyon and Paris. Saint Benignus, said to have brought Christianity to the area before he was martyred, became the city's patron. His cathedral still has a crypt more than 1,000 years old.
From the early 11th to the late 15th century the Dukes of Burgundy ruled from here. In the 14th and 15th centuries they held land across what is now north-eastern France, western Germany, Belgium and the Netherlands. They paid for painters, sculptors and musicians, many from Flanders. The palace they lived in now houses the town hall and the fine arts museum.
In 1513 Swiss and Imperial armies besieged Dijon. The governor, Louis II de la Trémoille, negotiated their withdrawal, and the townspeople credited a miracle and began to honour Notre-Dame de Bon-Espoir. Little of the siege shows in the streets today. A large woven hanging of it is in the fine arts museum, and it shows the town as it was before the French Revolution did its damage.
The 19th century gave the city its modern fittings. The Grand Théâtre was built in 1828, Les Halles was completed in 1875, and Jean Naigeon made his mustard in 1856. The Canal de Bourgogne carried industrial goods until railways took over in the mid-19th century, and Dijon is still where the railways from Paris split towards Lyon and Marseille.
Dijon was occupied in 1814, by Prussia in 1870 and 1871, and by Nazi Germany from June 1940. US bombers hit it during the war, and French forces and the Resistance liberated it on 11 September 1944. Even so, the old centre came through largely intact.
Mayors shaped the modern city. Gaston Gérard, mayor in 1921, started the autumn food fair to build a name for Dijon as a place to eat. Félix Kir had Lac Kir made, opening it in 1964 for water sports and to hold back floods on the Ouche. A new tram system opened in 2012, and in 2015 UNESCO listed the historic centre for its role in regulating Burgundy wine. In 2008 Unilever closed its mustard factory in the city.