The Citadel of Montpellier was built between 1624 and 1627, after several rebellions under the orders of Louis XIII in order to keep watch over the town. In the 20th century it became the Joffre Barracks, named after Joseph Joffre, and since 1947 the citadel has been an academic campus - the nationwide famous Lycée Joffre.
In 1621, King Louis XIII arrived with soldiers to quell a Huguenot rebellion; he took over the city after an eight-month siege. The king ordered that a royal citadel close to the city be constructed to control the city and the surrounding region, where there was a large Huguenot population.
The citadel was built between 1624 and 1627 between the fortifications of the Écusson, or old town, and the coastal plain of the River Lez. It was separated from the city proper by a wide esplanade, looking over the floodplain of the Lez. It comprised four bastions organized in a square.
Today the two southern bastions and the wall linking them have been preserved. There is a palm grove planted at the base of the wall. On the west side there remains the Bastion du Roi, which has been broken in multiple places to allow for construction of automobile access roads and pedestrian footpaths between the northern parking lot and the center of Montpellier. The walls and their embrasures are still visible.
References:Inverness Castle sits on a cliff overlooking the River Ness. The red sandstone structure evident today was built in 1836 by architect William Burn. It is built on the site of an 11th-century (c. 1057) defensive structure. Today, it houses Inverness Sheriff Court.
The castle is said to have been built by Máel Coluim III of Scotland, after he had razed to the ground the castle in which Macbeth of Scotland according to much later tradition, murdered Máel Coluim"s father Donnchad I of Scotland, and which stood on a hill around 1 km to the north-east.
The first Inverness Castle was partially destroyed by King Robert I of Scotland and a replacement castle was sacked in the 15th century by the Clan Donald during the Siege of Inverness (1429). The castle was occupied during the Raid on Ross in 1491.
In 1548 another castle with tower was completed by George Gordon, 4th Earl of Huntly (1514–1562). He was constable of the castle until 1562.