In the 18th century, the Knights Hospitaller built a number of coastal and inland entrenchments as part of the fortifications of Malta. Further entrenchments were built in Malta by insurgents during the blockade of 1798–1800, in order to prevent the French from launching a counterattack.