In the Roman era, a fortified tower guarded the crossing of two Roman roads that met at the site of Luxembourg city.
Through an exchange treaty with the abbey of Saint Maximin in Trier in 963, Siegfried I of the Ardennes, a close relative of King Louis II of France and Emperor Otto the Great, acquired the feudal lands of Luxembourg.
Siegfried built his castle, named Lucilinburhuc ("small castle"), on the Bock Fiels ("rock"), mentioned for the first time in the aforementioned exchange treaty.

In 987, Archbishop Egbert of Trier consecrated five altars in the Church of the Redemption (today St. Michael's Church).
At a Roman road intersection near the church, a marketplace appeared around which the city developed.

The city, because of its location and natural geography, has through history been a place of strategic military significance.
The first fortifications were built as early as the 10th century.
By the end of the 12th century, as the city expanded westward around the new St. Nicholas Church (today the Cathedral of Notre Dame), new walls were built that included an area of 5 hectares (12 acres).
In about 1340, under the reign of John the Blind, new fortifications were built that stood until 1867.

In 1443, the Burgundians under Philip the Good conquered Luxembourg.
Luxembourg became part of the Burgundian, and later Spanish and Austrian empires (See Spanish Netherlands and Spanish Road) and under those Habsburg administrations Luxembourg Castle was repeatedly strengthened so that by the 16th century, Luxembourg itself was one of the strongest fortifications in Europe.
Subsequently, the Burgundians, the Spanish, the French, the Spanish again, the Austrians, the French again, and the Prussians conquered Luxembourg.

In the 17th century, the first casemates were built; initially, Spain built 23 km (14 mi) of tunnels, starting in 1644.
These were then enlarged under French rule by Marshal Vauban, and augmented again under Austrian rule in the 1730s and 1740s.

During the French Revolutionary Wars, the city was occupied by France twice: once, briefly, in 1792–3, and, later, after a seven-month siege.
Luxembourg held out for so long under the French siege that French politician and military engineer Lazare Carnot called Luxembourg "the best fortress in the world, except Gibraltar", giving rise to the city's nickname: the 'Gibraltar of the North'.

Nonetheless, the Austrian garrison eventually surrendered, and as a consequence, Luxembourg was annexed by the French Republic, becoming part of the département of Forêts, with Luxembourg City as its préfecture.
Under the 1815 Treaty of Paris, which ended the Napoleonic Wars, Luxembourg City was placed under Prussian military control as a part of the German Confederation, although sovereignty passed to the House of Orange-Nassau, in personal union with the United Kingdom of the Netherlands.

After the Luxembourg Crisis, the 1867 Treaty of London required Luxembourg to dismantle the fortifications in Luxembourg City.
Their demolition took sixteen years, cost 1.5 million gold francs, and required the destruction of over 24 km (15 mi) of underground defences and 4 hectares (9.9 acres) of casemates, batteries, barracks, etc.
Furthermore, the Prussian garrison was to be withdrawn.

When, in 1890, Grand Duke William III died without any male heirs, the Grand Duchy passed out of Dutch hands, and into an independent line under Grand Duke Adolphe.
Thus, Luxembourg, which had hitherto been independent in theory only, became a truly independent country, and Luxembourg City regained some of the importance that it had lost in 1867 by becoming the capital of a fully independent state.

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
In the Roman era, a fortified tower guarded the crossing of two Roman roads that met at the site of Luxembourg city. Through an exchange treaty with the abbey of Saint Maximin in Trier in 963, Siegfried I of the Ardennes, a close relative of King Louis II of France and Emperor Otto the Great, acquired the feudal lands of Luxembourg. Siegfried built his castle, named Lucilinburhuc ("small castle"), on the Bock Fiels ("rock"), mentioned for the first time in the aforementioned exchange treaty.
In 987, Archbishop Egbert of Trier consecrated five altars in the Church of the Redemption (today St. Michael's Church). At a Roman road intersection near the church, a marketplace appeared around which the city developed.
The city, because of its location and natural geography, has through history been a place of strategic military significance. The first fortifications were built as early as the 10th century. By the end of the 12th century, as the city expanded westward around the new St. Nicholas Church (today the Cathedral of Notre Dame), new walls were built that included an area of 5 hectares (12 acres). In about 1340, under the reign of John the Blind, new fortifications were built that stood until 1867.
In 1443, the Burgundians under Philip the Good conquered Luxembourg. Luxembourg became part of the Burgundian, and later Spanish and Austrian empires (See Spanish Netherlands and Spanish Road) and under those Habsburg administrations Luxembourg Castle was repeatedly strengthened so that by the 16th century, Luxembourg itself was one of the strongest fortifications in Europe. Subsequently, the Burgundians, the Spanish, the French, the Spanish again, the Austrians, the French again, and the Prussians conquered Luxembourg.
In the 17th century, the first casemates were built; initially, Spain built 23 km (14 mi) of tunnels, starting in 1644. These were then enlarged under French rule by Marshal Vauban, and augmented again under Austrian rule in the 1730s and 1740s.
During the French Revolutionary Wars, the city was occupied by France twice: once, briefly, in 1792–3, and, later, after a seven-month siege. Luxembourg held out for so long under the French siege that French politician and military engineer Lazare Carnot called Luxembourg "the best fortress in the world, except Gibraltar", giving rise to the city's nickname: the 'Gibraltar of the North'.
Nonetheless, the Austrian garrison eventually surrendered, and as a consequence, Luxembourg was annexed by the French Republic, becoming part of the département of Forêts, with Luxembourg City as its préfecture. Under the 1815 Treaty of Paris, which ended the Napoleonic Wars, Luxembourg City was placed under Prussian military control as a part of the German Confederation, although sovereignty passed to the House of Orange-Nassau, in personal union with the United Kingdom of the Netherlands.
After the Luxembourg Crisis, the 1867 Treaty of London required Luxembourg to dismantle the fortifications in Luxembourg City. Their demolition took sixteen years, cost 1.5 million gold francs, and required the destruction of over 24 km (15 mi) of underground defences and 4 hectares (9.9 acres) of casemates, batteries, barracks, etc. Furthermore, the Prussian garrison was to be withdrawn.
When, in 1890, Grand Duke William III died without any male heirs, the Grand Duchy passed out of Dutch hands, and into an independent line under Grand Duke Adolphe. Thus, Luxembourg, which had hitherto been independent in theory only, became a truly independent country, and Luxembourg City regained some of the importance that it had lost in 1867 by becoming the capital of a fully independent state.
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
Luxembourg City